package com.wicket.okrapp.biz.service.impl;

import cn.hutool.core.bean.BeanUtil;
import com.wicket.okrapp.base.service.MOmsPlanningService;
import com.wicket.okrapp.base.service.dto.req.BatchQueryPlanListDataListReq;
import com.wicket.okrapp.biz.service.dto.common.BusAppDocRelaDto;
import com.wicket.okrapp.biz.service.dto.common.PlanningDto;
import com.wicket.okrapp.biz.service.dto.req.*;
import com.wicket.okrapp.biz.service.dto.res.*;
import com.wicket.okrapp.common.util.RedisUtil;
import com.wicket.okrapp.dal.po.mbg.OmsPlanning;
import com.wicket.okrcomponent.integration.dto.*;
import org.apache.skywalking.apm.toolkit.trace.Tag;
import org.apache.skywalking.apm.toolkit.trace.Tags;
import org.apache.skywalking.apm.toolkit.trace.Trace;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
import java.util.stream.Collectors;
import com.wicket.okrapp.base.service.MOmsBizAppHypertextContentService;
import com.wicket.okrapp.dal.po.mbg.OmsBizAppHypertextContent;
import com.wicket.okrapp.base.service.dto.req.QueryBusAppHypertextContentDetailReq;
import com.wicket.okrapp.base.service.MOmsTargetCategoryService;
import com.wicket.okrapp.dal.po.mbg.OmsTargetCategory;
import com.wicket.okrapp.base.service.dto.req.QueryTargetCatDetailReq;
import com.wicket.okrapp.base.service.MOmsVirtualOrgMemberDeptService;
import com.wicket.okrapp.dal.po.mbg.OmsVirtualOrgMemberDept;
import com.wicket.okrapp.base.service.dto.req.QueryVirtualOrgMemberDeptDetailReq;
import com.wicket.okrapp.base.service.MOmsBasicInstanceUnstructuredRelationshipService;
import com.wicket.okrapp.dal.po.mbg.OmsBasicInstanceUnstructuredRelationship;
import com.wicket.okrapp.base.service.dto.req.QueryBusAppDocRelaListReq;

import java.util.ArrayList;
import com.wicket.okrapp.common.exception.Assert;
import com.wicket.okrapp.base.service.dto.req.QueryPlanDataListReq;
import com.wicket.okrapp.base.service.dto.req.BatchQueryInfoDataVirtualOrgMemberDeptReq;
import cn.hutool.core.collection.CollectionUtil;
import com.wicket.okrcomponent.integration.FwCompConfSchemeClient;
import com.wicket.okrapp.base.service.dto.req.QueryPlanDataDetailReq;
import com.wicket.okrcomponent.integration.FwCompUnstructuredDataClient;
import com.wicket.okrapp.biz.service.UnstructuredDataService;
import com.wicket.okrapp.common.util.CommonFunctionHelper;
import com.wicket.okrapp.base.service.MOmsEvaluationTemplateService;
import com.wicket.okrapp.dal.po.mbg.OmsEvaluationTemplate;
import com.wicket.okrapp.base.service.dto.req.QueryEvaTempDetailReq;
import com.wicket.okrapp.base.service.MOmsEvaluationObjectTargetCycleService;
import com.wicket.okrapp.dal.po.mbg.OmsEvaluationObjectTargetCycle;
import com.wicket.okrapp.base.service.dto.req.QueryEvaObjTargetCycleDetailReq;
import com.wicket.okrapp.base.service.dto.req.QueryBusAppHypertextContentListReq;
import com.wicket.okrapp.biz.service.nb.NbPlanData;
import com.wicket.okrapp.common.exception.BizException;
import com.wicket.okrapp.biz.service.BatchService;
import com.wicket.okrapp.biz.service.ChangeColumnService;
import com.wicket.okrcomponent.integration.FwCompInterfaceModeClient;
import com.wicket.okrapp.base.service.dto.req.QueryEvaObjTargetCycleListReq;
import com.wicket.okrapp.biz.service.dto.common.DocumentDto;
import com.wicket.okrapp.biz.service.IndexSystemService;

/**
 * @author ：
 * @date ：
 *
 *
 * @version 1.0
 */
@Service
public class PlanDataServiceImpl
        implements com.wicket.okrapp.biz.service.PlanDataService {

    @Resource
    private RedisUtil redisUtil;
    @Resource
    private MOmsPlanningService mOmsPlanningService;
@Resource
  private MOmsBizAppHypertextContentService mOmsBizAppHypertextContentService;
@Resource
  private MOmsTargetCategoryService mOmsTargetCategoryService;
@Resource
  private MOmsVirtualOrgMemberDeptService mOmsVirtualOrgMemberDeptService;
@Resource
  private MOmsBasicInstanceUnstructuredRelationshipService mOmsBasicInstanceUnstructuredRelationshipService;
@Resource
  private FwCompConfSchemeClient fwCompConfSchemeClient;
@Resource
  private FwCompUnstructuredDataClient fwCompUnstructuredDataClient;
@Resource
  private UnstructuredDataService unstructuredDataService;
@Resource
  private MOmsEvaluationTemplateService mOmsEvaluationTemplateService;
@Resource
  private MOmsEvaluationObjectTargetCycleService mOmsEvaluationObjectTargetCycleService;
//@Resource
 //private MCustomFields2Service mCustomFields2Service;
@Resource
  private NbPlanData nbPlanData;
@Resource
  private BatchService batchService;
@Resource
  private ChangeColumnService changeColumnService;
@Resource
  private FwCompInterfaceModeClient fwCompInterfaceModeClient;
@Resource
  private IndexSystemService indexSystemService;
//@Resource
 //private MCustomFields3Service mCustomFields3Service;

    /**
     * D3-2批量查规划资料[2147]
     */
    @Trace(operationName = "D3-2批量查规划资料")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public BatchQueryPlanDataListRespDto batchQueryPlanDataList(BatchQueryPlanDataListReqDto reqDto) {


        //步骤0: 3-5-01批量查询规划资料列表 - batchQueryPlanListDataList
        List<OmsPlanning> listOmsPlanning = null;
        BatchQueryPlanListDataListReq batchQueryPlanListDataListReq = new BatchQueryPlanListDataListReq();
        if (reqDto != null) {
            batchQueryPlanListDataListReq.setPlanningList(reqDto.getPlanningList());//sourceId:62436_1
            batchQueryPlanListDataListReq.setSpaceId(reqDto.getSpaceId());//sourceId:62435_1
        }

        /*3-5-01批量查询规划资料列表[2150]   */
        listOmsPlanning = mOmsPlanningService.batchQueryPlanListDataList(batchQueryPlanListDataListReq);


        BatchQueryPlanDataListRespDto retData = new BatchQueryPlanDataListRespDto();
        retData.setPlanningList(listOmsPlanning.stream().map(item -> BeanUtil.toBean(item, PlanningDto.class)).collect(Collectors.toList()));//sourceId:62440_1


        return retData;
    }
/**
   * D3-5查规划资料详情[2516]
   * gen by moon at 6/9/2024, 1:06:22 AM
   */
  @Trace(operationName = "D3-5查规划资料详情")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public QueryPlanDataDetailRespDto queryPlanDataDetail(QueryPlanDataDetailReqDto reqDto){
    
      
      OmsPlanning omsPlanning_1 =null;
OmsBizAppHypertextContent omsBizAppHypertextContent_1 =null;
OmsTargetCategory omsTargetCategory_1 =null;
OmsVirtualOrgMemberDept omsVirtualOrgMemberDept_1 =null;
QueryUnstructuredRelationshipListComRespDto queryUnstructuredRelationshipListComRespDto_1 =null;
BatchQueryDocumentComRespDto batchQueryDocumentComRespDto_1 =null;
//步骤0: 3-5-01查规划资料详情 - queryPlanDataDetail
     OmsPlanning omsPlanning = null;
    QueryPlanDataDetailReq queryPlanDataDetailReq=new QueryPlanDataDetailReq();
  if(reqDto!=null){
      queryPlanDataDetailReq.setPlanningId(reqDto.getPlanningId());//SimpleFieldAssign//sourceId:78553_1
queryPlanDataDetailReq.setIsArchive(reqDto.getIsArchive());//SimpleFieldAssign//sourceId:92900_1
queryPlanDataDetailReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:92901_1
    }
  
    /*3-5-01查规划资料详情[2515]   */
    Assert.isNull(queryPlanDataDetailReq.getPlanningId(),"D3-5查规划资料详情-3-5-01查规划资料详情-规划资料ID不能为空",false);
      omsPlanning = mOmsPlanningService.queryPlanDataDetail(queryPlanDataDetailReq)/*vcase invoke 本地 method 方法调用;*/;
      Assert.isTrue(omsPlanning== null||  omsPlanning.getPlanningId() ==null,"找不到数据，系统异常",false);

      omsPlanning_1 = omsPlanning;
    
//步骤1: 3-5-02查询业务应用超文本内容详情 - queryBusAppHypertextContentDetail
     OmsBizAppHypertextContent omsBizAppHypertextContent = null;
    if(omsPlanning !=null){
          QueryBusAppHypertextContentDetailReq queryBusAppHypertextContentDetailReq=new QueryBusAppHypertextContentDetailReq();
  queryBusAppHypertextContentDetailReq.setReleationContTypeCode("PLANNING_DATA");//sourceId:110875_1
if(omsPlanning!=null){
      queryBusAppHypertextContentDetailReq.setReleationContId(omsPlanning.getPlanningId());//SimpleFieldAssign//sourceId:110876_1
    }
  
    /*3-5-02查询业务应用超文本内容详情[3140]   */
    Assert.isNull(queryBusAppHypertextContentDetailReq.getReleationContId(),"D3-5查规划资料详情-3-5-02查询业务应用超文本内容详情-超文本内容关联主键ID不能为空",false);
Assert.isNull(queryBusAppHypertextContentDetailReq.getReleationContTypeCode(),"D3-5查规划资料详情-3-5-02查询业务应用超文本内容详情-超文本内容关联类型编码不能为空",false);
      omsBizAppHypertextContent = mOmsBizAppHypertextContentService.queryBusAppHypertextContentDetail(queryBusAppHypertextContentDetailReq)/*vcase invoke 本地 method 方法调用;*/;
      

      omsBizAppHypertextContent_1 = omsBizAppHypertextContent;
           }
    
//步骤2: 3-3-02查目标分类详情 - queryTargetCatDetail
     OmsTargetCategory omsTargetCategory = null;
    if(omsPlanning !=null&&omsPlanning!= null&&  omsPlanning.getTargetCategoryId() !=null){
          QueryTargetCatDetailReq queryTargetCatDetailReq=new QueryTargetCatDetailReq();
  if(omsPlanning!=null){
      queryTargetCatDetailReq.setTargetCategoryId(omsPlanning.getTargetCategoryId());//SimpleFieldAssign//sourceId:110883_1
    }
if(reqDto!=null){
      queryTargetCatDetailReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:92935_1
queryTargetCatDetailReq.setIsArchive(reqDto.getIsArchive());//SimpleFieldAssign//sourceId:92947_1
    }
  
    /*3-3-02查目标分类详情[2595]   */
    Assert.isNull(queryTargetCatDetailReq.getTargetCategoryId(),"D3-5查规划资料详情-3-3-02查目标分类详情-目标分类ID不能为空",false);
Assert.isNull(queryTargetCatDetailReq.getIsValid(),"D3-5查规划资料详情-3-3-02查目标分类详情-是否作废不能为空",false);
Assert.isNull(queryTargetCatDetailReq.getSpaceId(),"D3-5查规划资料详情-3-3-02查目标分类详情-创建于空间ID不能为空",false);
Assert.isNull(queryTargetCatDetailReq.getAppId(),"D3-5查规划资料详情-3-3-02查目标分类详情-创建于联盟应用ID不能为空",false);
      omsTargetCategory = mOmsTargetCategoryService.queryTargetCatDetail(queryTargetCatDetailReq)/*vcase invoke 本地 method 方法调用;*/;
      

      omsTargetCategory_1 = omsTargetCategory;
           }
    
//步骤3: 3-6-03查虚拟成员部门详情 - queryVirtualOrgMemberDeptDetail
     OmsVirtualOrgMemberDept omsVirtualOrgMemberDept = null;
    if(omsPlanning !=null&&omsPlanning!= null&&  omsPlanning.getDeptId() !=null){
          QueryVirtualOrgMemberDeptDetailReq queryVirtualOrgMemberDeptDetailReq=new QueryVirtualOrgMemberDeptDetailReq();
  queryVirtualOrgMemberDeptDetailReq.setIsDisplay("TRUE");//sourceId:78599_1
  queryVirtualOrgMemberDeptDetailReq.setDeptType("LEAD_DEPT");//sourceId:78592_1
queryVirtualOrgMemberDeptDetailReq.setIsArchive("FALSE");//sourceId:78593_1
if(omsPlanning!=null){
      queryVirtualOrgMemberDeptDetailReq.setDeptId(omsPlanning.getDeptId());//SimpleFieldAssign//sourceId:78591_1
    }
  
    /*3-6-03查虚拟成员部门详情[2518]   */
    Assert.isNull(queryVirtualOrgMemberDeptDetailReq.getDeptId(),"D3-5查规划资料详情-3-6-03查虚拟成员部门详情-虚拟组织下部门ID不能为空",false);
Assert.isNull(queryVirtualOrgMemberDeptDetailReq.getIsDisplay(),"D3-5查规划资料详情-3-6-03查虚拟成员部门详情-是否外部展示不能为空",false);
Assert.isNull(queryVirtualOrgMemberDeptDetailReq.getDeptType(),"D3-5查规划资料详情-3-6-03查虚拟成员部门详情-部门类型编码不能为空",false);
Assert.isNull(queryVirtualOrgMemberDeptDetailReq.getIsArchive(),"D3-5查规划资料详情-3-6-03查虚拟成员部门详情-是否存档不能为空",false);
      omsVirtualOrgMemberDept = mOmsVirtualOrgMemberDeptService.queryVirtualOrgMemberDeptDetail(queryVirtualOrgMemberDeptDetailReq)/*vcase invoke 本地 method 方法调用;*/;
      

      omsVirtualOrgMemberDept_1 = omsVirtualOrgMemberDept;
           }
    
//步骤4: D2查询文档关系列表(公共) - queryUnstructuredRelationshipListCom
     QueryUnstructuredRelationshipListComRespDto queryUnstructuredRelationshipListComRespDto = null;
    QueryUnstructuredRelationshipListComReqDto queryUnstructuredRelationshipListComReqDto=new QueryUnstructuredRelationshipListComReqDto();
  queryUnstructuredRelationshipListComReqDto.setDocUseSceneCode("PLANNING");//sourceId:1857401_1
queryUnstructuredRelationshipListComReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1857408_1
if(reqDto!=null){
      queryUnstructuredRelationshipListComReqDto.setOwnEntityId(reqDto.getPlanningId());//SimpleFieldAssign//sourceId:1857405_1
    }
  
    /*D2查询文档关系列表(公共)[9270]   */
    Assert.isNull(queryUnstructuredRelationshipListComReqDto.getDocUseSceneCode(),"D3-5查规划资料详情-D2查询文档关系列表(公共)-文档应用业务场景不能为空",false);
Assert.isNull(queryUnstructuredRelationshipListComReqDto.getOwnEntityId(),"D3-5查规划资料详情-D2查询文档关系列表(公共)-归属内容表主键ID不能为空",false);
Assert.isNull(queryUnstructuredRelationshipListComReqDto.getSpaceId(),"D3-5查规划资料详情-D2查询文档关系列表(公共)-创建于空间ID不能为空",false);
      queryUnstructuredRelationshipListComRespDto = fwCompUnstructuredDataClient.queryUnstructuredRelationshipListCom(queryUnstructuredRelationshipListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      

      queryUnstructuredRelationshipListComRespDto_1 = queryUnstructuredRelationshipListComRespDto;
    
//步骤5: D2-批量查询文档列表(公共) - batchQueryDocumentCom
     BatchQueryDocumentComRespDto batchQueryDocumentComRespDto = null;
    if(queryUnstructuredRelationshipListComRespDto !=null){
          BatchQueryDocumentComReqDto batchQueryDocumentComReqDto=new BatchQueryDocumentComReqDto();
  batchQueryDocumentComReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1798190_1
if(queryUnstructuredRelationshipListComRespDto!= null&&  queryUnstructuredRelationshipListComRespDto.getUnstructuredRelationshipList() !=null&& !CollectionUtil.isEmpty(queryUnstructuredRelationshipListComRespDto.getUnstructuredRelationshipList())){
      batchQueryDocumentComReqDto.setDocumentList(queryUnstructuredRelationshipListComRespDto.getUnstructuredRelationshipList().stream().map(item->item.getUnstructuredDataId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:93111_1
    }

    /*D2-批量查询文档列表(公共)[2670]   */
    Assert.isNull(batchQueryDocumentComReqDto.getSpaceId(),"D3-5查规划资料详情-D2-批量查询文档列表(公共)-创建于空间ID不能为空",false);
      batchQueryDocumentComRespDto = fwCompUnstructuredDataClient.batchQueryDocumentCom(batchQueryDocumentComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      

      batchQueryDocumentComRespDto_1 = batchQueryDocumentComRespDto;
           }
    
QueryPlanDataDetailRespDto retData = new QueryPlanDataDetailRespDto();
  //数据集融合  MoreListToOneSource
        if(queryUnstructuredRelationshipListComRespDto_1!= null && !CollectionUtil.isEmpty(queryUnstructuredRelationshipListComRespDto_1.getUnstructuredRelationshipList()) ){
          for (UnstructuredRelationshipDto unstructuredRelationshipDto : queryUnstructuredRelationshipListComRespDto_1.getUnstructuredRelationshipList()) {
              BusAppDocRelaDto retElm = new BusAppDocRelaDto();
             if(queryUnstructuredRelationshipListComRespDto_1!=null){
      retElm.setUnstructuredDataRelationshipId(unstructuredRelationshipDto.getUnstructuredDataRelationshipId());//SimpleFieldAssign//sourceId:372113_2
retElm.setUnstructuredDataId(unstructuredRelationshipDto.getUnstructuredDataId());//SimpleFieldAssign//sourceId:372114_2
    }
              retData.getBusAppDocRelaList().add(retElm);
               if(batchQueryDocumentComRespDto_1!= null){
          for (com.wicket.okrcomponent.integration.dto.DocumentDto documentDto : batchQueryDocumentComRespDto_1.getDocumentList()) {
                if (documentDto.getUnstructuredDataId().equals(unstructuredRelationshipDto.getUnstructuredDataId())) {
                 if(batchQueryDocumentComRespDto_1!=null){
      retElm.setUnstructuredDataName(documentDto.getUnstructuredDataName());//SimpleFieldAssign//sourceId:52240_2
retElm.setFileSize(documentDto.getFileSize());//SimpleFieldAssign//sourceId:52241_2
retElm.setPostfix(documentDto.getPostfix());//SimpleFieldAssign//sourceId:52239_2
retElm.setUnstructuredDataDetailType(documentDto.getUnstructuredDataDetailType());//SimpleFieldAssign//sourceId:52242_2
retElm.setFileRelativePathAccess(documentDto.getFileRelativePathAccess());//SimpleFieldAssign//sourceId:52243_2
retElm.setIsSupportPreview(documentDto.getIsSupportPreview());//SimpleFieldAssign//sourceId:52244_2
    }
                }
            }
          }

          }
        }//sourceId:78601_1
if(omsPlanning_1!=null){
      retData.setPlanningId(omsPlanning_1.getPlanningId());//SimpleFieldAssign//sourceId:78578_1
retData.setPlanningNumber(omsPlanning_1.getPlanningNumber());//SimpleFieldAssign//sourceId:78579_1
retData.setPlanningName(omsPlanning_1.getPlanningName());//SimpleFieldAssign//sourceId:78580_1
retData.setPlanningShortName(omsPlanning_1.getPlanningShortName());//SimpleFieldAssign//sourceId:78581_1
retData.setDeptId(omsPlanning_1.getDeptId());//SimpleFieldAssign//sourceId:78583_1
retData.setUpdateStatus(omsPlanning_1.getUpdateStatus());//SimpleFieldAssign//sourceId:465917_1
retData.setSubjectLifeCycle(omsPlanning_1.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:465918_1
    }
if(omsBizAppHypertextContent_1!=null){
      retData.setHypertextContent(omsBizAppHypertextContent_1.getHypertextContent());//SimpleFieldAssign//sourceId:110881_1
    }
if(omsVirtualOrgMemberDept_1!=null){
      retData.setVirtualOrgDeptStatus(omsVirtualOrgMemberDept_1.getVirtualOrgDeptStatus());//SimpleFieldAssign//sourceId:78596_1
    }
if(omsTargetCategory_1!=null){
      retData.setTargetCategoryName(omsTargetCategory_1.getTargetCategoryName());//SimpleFieldAssign//sourceId:92962_1
    }
  

  
  
return retData;
  }
/**
   * D3-5查询规划资料列表[2535]
   * gen by moon at 10/24/2022, 4:49:23 AM
   */
  @Trace(operationName = "D3-5查询规划资料列表")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public QueryPlanDataListRespDto queryPlanDataList(QueryPlanDataListReqDto reqDto){
    
      
      List<OmsPlanning> listOmsPlanning_1 =new ArrayList<>();
List<OmsVirtualOrgMemberDept> listOmsVirtualOrgMemberDept_1 =new ArrayList<>();
//步骤0: 3-5-01查规划资料列表 - queryPlanDataList
     List<OmsPlanning> listOmsPlanning =new ArrayList<>();
    QueryPlanDataListReq queryPlanDataListReq=new QueryPlanDataListReq();
  if(reqDto!=null){
      queryPlanDataListReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:388424_1
queryPlanDataListReq.setEvaObjTargetCycleId(reqDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:116151_1
queryPlanDataListReq.setPlanSchemeClass(reqDto.getPlanSchemeClass());//SimpleFieldAssign//sourceId:116154_1
queryPlanDataListReq.setIsArchive(reqDto.getIsArchive());//SimpleFieldAssign//sourceId:116156_1
queryPlanDataListReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:116157_1
    }
  
    /*3-5-01查规划资料列表[2536]   */
    Assert.isNull(queryPlanDataListReq.getEvaObjTargetCycleId(),"D3-5查询规划资料列表-3-5-01查规划资料列表-被评对象目标周期ID不能为空",false);
Assert.isNull(queryPlanDataListReq.getPlanSchemeClass(),"D3-5查询规划资料列表-3-5-01查规划资料列表-规划方案类别不能为空",false);
      listOmsPlanning = mOmsPlanningService.queryPlanDataList(queryPlanDataListReq);
      

      listOmsPlanning_1 = listOmsPlanning;
    
//步骤1: 3-6-03批量查资料匹配虚拟成员部门 - batchQueryInfoDataVirtualOrgMemberDept
     List<OmsVirtualOrgMemberDept> listOmsVirtualOrgMemberDept =new ArrayList<>();
    if(listOmsPlanning !=null&& !CollectionUtil.isEmpty(listOmsPlanning)&& listOmsPlanning.size()>0 ){
          BatchQueryInfoDataVirtualOrgMemberDeptReq batchQueryInfoDataVirtualOrgMemberDeptReq=new BatchQueryInfoDataVirtualOrgMemberDeptReq();
  batchQueryInfoDataVirtualOrgMemberDeptReq.setVirtualOrgMemberDeptList(listOmsPlanning.stream().map(item->item.getDeptId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:78816_1
if(reqDto!=null){
      batchQueryInfoDataVirtualOrgMemberDeptReq.setIsArchive(reqDto.getIsArchive());//SimpleFieldAssign//sourceId:78818_1
batchQueryInfoDataVirtualOrgMemberDeptReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:78819_1
    }
  
    /*3-6-03批量查资料匹配虚拟成员部门[2540]   */
    
      listOmsVirtualOrgMemberDept = mOmsVirtualOrgMemberDeptService.batchQueryInfoDataVirtualOrgMemberDept(batchQueryInfoDataVirtualOrgMemberDeptReq);


      listOmsVirtualOrgMemberDept_1 = listOmsVirtualOrgMemberDept;
           }
    
QueryPlanDataListRespDto retData = new QueryPlanDataListRespDto();
  //数据集融合  MoreListToOneSource
        if(listOmsPlanning_1!= null&& !CollectionUtil.isEmpty(listOmsPlanning_1) && !CollectionUtil.isEmpty(listOmsPlanning_1) ){
          for (OmsPlanning omsPlanning : listOmsPlanning_1) {
              PlanningDto retElm = new PlanningDto();
             retElm.setPlanningId(omsPlanning.getPlanningId());//SimpleFieldAssign//sourceId:62334_2
retElm.setPlanningShortName(omsPlanning.getPlanningShortName());//SimpleFieldAssign//sourceId:62335_2
retElm.setTargetCategoryId(omsPlanning.getTargetCategoryId());//SimpleFieldAssign//sourceId:62339_2
              retData.getPlanningList().add(retElm);
               if(listOmsVirtualOrgMemberDept_1!= null&& !CollectionUtil.isEmpty(listOmsVirtualOrgMemberDept_1)){
          for (OmsVirtualOrgMemberDept omsVirtualOrgMemberDept : listOmsVirtualOrgMemberDept_1) {
                if (omsVirtualOrgMemberDept.getDeptId().equals(omsPlanning.getDeptId())) {
                 retElm.setDeptId(omsVirtualOrgMemberDept.getDeptId());//SimpleFieldAssign//sourceId:62336_2
retElm.setVirtualOrgDeptStatus(omsVirtualOrgMemberDept.getVirtualOrgDeptStatus());//SimpleFieldAssign//sourceId:62338_2
                }
            }
          }
        
          }
        }//sourceId:116167_1
  

  
  
return retData;
  }
/**
   * D3-5新增规划资料(公共)[3137]
   * gen by moon at 7/1/2024, 6:32:30 PM
   */
  @Trace(operationName = "D3-5新增规划资料(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public AddPlanDataComRespDto addPlanDataCom(AddPlanDataComReqDto reqDto){
    
      
      String string_1 =null;
String string_3 =null;
//步骤0: 3-5-01新增规划资料 - addPlanData
     String string = null;
    OmsPlanning omsPlanning=new OmsPlanning();
  if(reqDto!=null){
      omsPlanning.setTargetCategoryId(reqDto.getTargetCategoryId());//SimpleFieldAssign//sourceId:110675_1
omsPlanning.setEvaObjTargetCycleId(reqDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:110664_1
omsPlanning.setPlanningType(reqDto.getPlanningType());//SimpleFieldAssign//sourceId:110665_1
omsPlanning.setOkrType(reqDto.getOkrType());//SimpleFieldAssign//sourceId:110666_1
omsPlanning.setPlanSchemeClass(reqDto.getPlanSchemeClass());//SimpleFieldAssign//sourceId:110667_1
omsPlanning.setIsMainplan(reqDto.getIsMainplan());//SimpleFieldAssign//sourceId:162562_1
omsPlanning.setPlanningNumber(reqDto.getPlanningNumber());//SimpleFieldAssign//sourceId:113930_1
omsPlanning.setPlanningName(reqDto.getPlanningName());//SimpleFieldAssign//sourceId:110669_1
omsPlanning.setPlanningShortName(reqDto.getPlanningShortName());//SimpleFieldAssign//sourceId:110670_1
omsPlanning.setDeptId(reqDto.getDeptId());//SimpleFieldAssign//sourceId:110672_1
omsPlanning.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:162563_1
omsPlanning.setBatchCode(reqDto.getBatchCode());//SimpleFieldAssign//sourceId:110673_1
    }
  
    /*3-5-01新增规划资料[2346]   */
    Assert.isNull(omsPlanning.getEvaObjTargetCycleId(),"D3-5新增规划资料(公共)-3-5-01新增规划资料-被评对象目标周期ID不能为空",false);
Assert.isNull(omsPlanning.getPlanningType(),"D3-5新增规划资料(公共)-3-5-01新增规划资料-规划类型不能为空",false);
Assert.isNull(omsPlanning.getOkrType(),"D3-5新增规划资料(公共)-3-5-01新增规划资料-OKR类型不能为空",false);
Assert.isNull(omsPlanning.getPlanSchemeClass(),"D3-5新增规划资料(公共)-3-5-01新增规划资料-规划方案类别不能为空",false);
Assert.isNull(omsPlanning.getIsMainplan(),"D3-5新增规划资料(公共)-3-5-01新增规划资料-是否总规划不能为空",false);
Assert.isNull(omsPlanning.getPlanningNumber(),"D3-5新增规划资料(公共)-3-5-01新增规划资料-规划编号不能为空",false);
Assert.isNull(omsPlanning.getPlanningName(),"D3-5新增规划资料(公共)-3-5-01新增规划资料-规划名称不能为空",false);
Assert.isNull(omsPlanning.getPlanningShortName(),"D3-5新增规划资料(公共)-3-5-01新增规划资料-规划简称不能为空",false);
Assert.isNull(omsPlanning.getEvaluationTemplateId(),"D3-5新增规划资料(公共)-3-5-01新增规划资料-冗余评价模板ID不能为空",false);
Assert.isNull(omsPlanning.getBatchCode(),"D3-5新增规划资料(公共)-3-5-01新增规划资料-批次标识不能为空",false);
      string = mOmsPlanningService.addPlanData(omsPlanning)/*vcase invoke 本地 method 方法调用;*/;
      
      
      string_1 = string;
    
//步骤1: 3-5-2新增超文本内容 - addHypertextContent
     String string_2 = null;
    if(string !=null){
          OmsBizAppHypertextContent omsBizAppHypertextContent=new OmsBizAppHypertextContent();
  omsBizAppHypertextContent.setReleationContTypeCode("PLANNING_DATA");//sourceId:110655_1
omsBizAppHypertextContent.setHypertextType("PLANNING_DATA");//sourceId:332829_1
if(string!=null){
      omsBizAppHypertextContent.setReleationContId(string);//SimpleFieldAssign//sourceId:110656_1
    }
if(reqDto!=null){
      omsBizAppHypertextContent.setHypertextContent(reqDto.getHypertextContent());//SimpleFieldAssign//sourceId:110657_1
    }
  
    /*3-5-2新增超文本内容[3136]   */
    Assert.isNull(omsBizAppHypertextContent.getReleationContTypeCode(),"D3-5新增规划资料(公共)-3-5-2新增超文本内容-超文本内容关联类型编码不能为空",false);
Assert.isNull(omsBizAppHypertextContent.getReleationContId(),"D3-5新增规划资料(公共)-3-5-2新增超文本内容-超文本内容关联主键ID不能为空",false);
Assert.isNull(omsBizAppHypertextContent.getHypertextContent(),"D3-5新增规划资料(公共)-3-5-2新增超文本内容-超文本内容不能为空",false);
Assert.isNull(omsBizAppHypertextContent.getHypertextType(),"D3-5新增规划资料(公共)-3-5-2新增超文本内容-超文本内容类型不能为空",false);
      string_2 = mOmsBizAppHypertextContentService.addHypertextContent(omsBizAppHypertextContent)/*vcase invoke 本地 method 方法调用;*/;
      
      
      string_3 = string_2;
           }

AddPlanDataComRespDto retData = new AddPlanDataComRespDto();
  if(string_3!=null){
      retData.setHypertextContentId(string_3);//SimpleFieldAssign//sourceId:110710_1
    }
if(string_1!=null){
      retData.setPlanningId(string_1);//SimpleFieldAssign//sourceId:110711_1
    }
  

  
  
return retData;
  }
/**
   * D3-5撤销批次处理规划资料更新状态(公共)[3622]
   * gen by moon at 5/8/2023, 6:28:12 AM
   */
  @Trace(operationName = "D3-5撤销批次处理规划资料更新状态(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public UndoBatchHandleEvaPlanUpdStatusComRespDto undoBatchHandleEvaPlanUpdStatusCom(UndoBatchHandleEvaPlanUpdStatusComReqDto reqDto){
    
      
      //步骤0: 3-5-01查规划资料列表 - queryPlanDataList
     List<OmsPlanning> listOmsPlanning =new ArrayList<>();
    QueryPlanDataListReq queryPlanDataListReq=new QueryPlanDataListReq();
  queryPlanDataListReq.setIsMainplan("FALSE");//sourceId:162663_1
queryPlanDataListReq.setUpdateStatus("NEW");//sourceId:162666_1
if(reqDto!=null){
      queryPlanDataListReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:162664_1
queryPlanDataListReq.setBatchCode(reqDto.getBatchCode());//SimpleFieldAssign//sourceId:162665_1
    }
  
    /*3-5-01查本次新增非总规划资料列表[2536]   */
    Assert.isNull(queryPlanDataListReq.getIsMainplan(),"D3-5撤销批次处理规划资料更新状态(公共)-3-5-01查本次新增非总规划资料列表-是否总规划不能为空",false);
Assert.isNull(queryPlanDataListReq.getEvaluationTemplateId(),"D3-5撤销批次处理规划资料更新状态(公共)-3-5-01查本次新增非总规划资料列表-冗余评价模板ID不能为空",false);
Assert.isNull(queryPlanDataListReq.getBatchCode(),"D3-5撤销批次处理规划资料更新状态(公共)-3-5-01查本次新增非总规划资料列表-批次标识不能为空",false);
Assert.isNull(queryPlanDataListReq.getUpdateStatus(),"D3-5撤销批次处理规划资料更新状态(公共)-3-5-01查本次新增非总规划资料列表-批次下更新状态不能为空",false);
      listOmsPlanning = mOmsPlanningService.queryPlanDataList(queryPlanDataListReq)/*vcase invoke 本地 method 方法调用;*/;
      
      


//步骤1: 3-5-01批量删规划资料 - batchDeletePlanData
     boolean bOOLEAN ;
    if(listOmsPlanning !=null&& !CollectionUtil.isEmpty(listOmsPlanning)&& listOmsPlanning.size()>0 ){
          List<String> listString=new ArrayList<>();
  if(listOmsPlanning!= null&& !CollectionUtil.isEmpty(listOmsPlanning)&&  listOmsPlanning !=null&& !CollectionUtil.isEmpty(listOmsPlanning)){
  listString = listOmsPlanning.stream().map(item->item.getPlanningId())
        .collect(Collectors.toList());/*list-to-strings*///sourceId:162662_1
    }

    /*3-5-01批量删规划资料[3627]   */
    
      bOOLEAN = mOmsPlanningService.batchDeletePlanData(listString)/*vcase invoke 本地 method 方法调用;*/;
      
      

           }
    
//步骤2: 3-5-01查规划资料列表 - queryPlanDataList
     List<OmsPlanning> listOmsPlanning_2 =new ArrayList<>();
    QueryPlanDataListReq queryPlanDataListReq_1=new QueryPlanDataListReq();
  queryPlanDataListReq_1.setIsMainplan("FALSE");//sourceId:162669_1
queryPlanDataListReq_1.setUpdateStatus("ARCHIVE");//sourceId:162672_1
if(reqDto!=null){
      queryPlanDataListReq_1.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:162670_1
queryPlanDataListReq_1.setBatchCode(reqDto.getBatchCode());//SimpleFieldAssign//sourceId:162671_1
    }
  
    /*3-5-01查想存档非总规划资料列表[2536]   */
    Assert.isNull(queryPlanDataListReq_1.getIsMainplan(),"D3-5撤销批次处理规划资料更新状态(公共)-3-5-01查想存档非总规划资料列表-是否总规划不能为空",false);
Assert.isNull(queryPlanDataListReq_1.getEvaluationTemplateId(),"D3-5撤销批次处理规划资料更新状态(公共)-3-5-01查想存档非总规划资料列表-冗余评价模板ID不能为空",false);
Assert.isNull(queryPlanDataListReq_1.getBatchCode(),"D3-5撤销批次处理规划资料更新状态(公共)-3-5-01查想存档非总规划资料列表-批次标识不能为空",false);
Assert.isNull(queryPlanDataListReq_1.getUpdateStatus(),"D3-5撤销批次处理规划资料更新状态(公共)-3-5-01查想存档非总规划资料列表-批次下更新状态不能为空",false);
      listOmsPlanning_2 = mOmsPlanningService.queryPlanDataList(queryPlanDataListReq_1)/*vcase invoke 本地 method 方法调用;*/;
      
      


//步骤3: 3-5-01批量改规划资料 - batchUpdatePlanData
     boolean bOOLEAN_1 ;
    if(listOmsPlanning_2 !=null&& !CollectionUtil.isEmpty(listOmsPlanning_2)&& listOmsPlanning_2.size()>0 ){
          List<OmsPlanning> listOmsPlanning_4=new ArrayList<>();
  if(listOmsPlanning_2!= null&& !CollectionUtil.isEmpty(listOmsPlanning_2)&&  listOmsPlanning_2 !=null&& !CollectionUtil.isEmpty(listOmsPlanning_2)){
      listOmsPlanning_4 = listOmsPlanning_2.stream().map(item -> {
        OmsPlanning elm =BeanUtil.toBean(item, OmsPlanning.class);
        elm.setIsUpdate("FALSE");
elm.setUpdateStatus("UNCHANGED");
elm.setArchivngType("NOT_ARCHIVE");
elm.setArchiveInductionId("---");//NULL
elm.setArchiveTime(CommonFunctionHelper.getFutureTime());//NULL

        return elm;
      }).collect(Collectors.toList());//objList-to-objLists//sourceId:162674_1
    }
  
    /*3-5-01批量改规划资料为当前有效（撤销存档）[2918]   */
    
      bOOLEAN_1 = mOmsPlanningService.batchUpdatePlanData(listOmsPlanning_4)/*vcase invoke 本地 method 方法调用;*/;
      
      

           }
    
UndoBatchHandleEvaPlanUpdStatusComRespDto retData = new UndoBatchHandleEvaPlanUpdStatusComRespDto();
  
  

  
  
return retData;
  }
/**
   * D3-5发布批次处理规划资料更新状态(公共)[3618]
   * gen by moon at 10/27/2022, 4:16:50 PM
   */
  @Trace(operationName = "D3-5发布批次处理规划资料更新状态(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ReleaseBatchHandleEvaPlanUpdStatusComRespDto releaseBatchHandleEvaPlanUpdStatusCom(ReleaseBatchHandleEvaPlanUpdStatusComReqDto reqDto){
    
      
      //步骤0: 3-5-01查规划资料列表 - queryPlanDataList
     List<OmsPlanning> listOmsPlanning =new ArrayList<>();
    QueryPlanDataListReq queryPlanDataListReq=new QueryPlanDataListReq();
  queryPlanDataListReq.setUpdateStatus("NEW");//sourceId:162548_1
if(reqDto!=null){
      queryPlanDataListReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:162554_1
queryPlanDataListReq.setBatchCode(reqDto.getBatchCode());//SimpleFieldAssign//sourceId:162555_1
    }
  
    /*3-5-01查本次新增规划资料列表[2536]   */
    Assert.isNull(queryPlanDataListReq.getEvaluationTemplateId(),"D3-5发布批次处理规划资料更新状态(公共)-3-5-01查本次新增规划资料列表-冗余评价模板ID不能为空",false);
Assert.isNull(queryPlanDataListReq.getBatchCode(),"D3-5发布批次处理规划资料更新状态(公共)-3-5-01查本次新增规划资料列表-批次标识不能为空",false);
Assert.isNull(queryPlanDataListReq.getUpdateStatus(),"D3-5发布批次处理规划资料更新状态(公共)-3-5-01查本次新增规划资料列表-批次下更新状态不能为空",false);
      listOmsPlanning = mOmsPlanningService.queryPlanDataList(queryPlanDataListReq);
      
      


//步骤1: 3-5-01批量改规划资料 - batchUpdatePlanData
     boolean bOOLEAN ;
    if(listOmsPlanning !=null&& !CollectionUtil.isEmpty(listOmsPlanning)&& listOmsPlanning.size()>0 ){
          List<OmsPlanning> listOmsPlanning_2=new ArrayList<>();
  if(listOmsPlanning!= null&& !CollectionUtil.isEmpty(listOmsPlanning)&&  listOmsPlanning !=null&& !CollectionUtil.isEmpty(listOmsPlanning)){
      listOmsPlanning_2 = listOmsPlanning.stream().map(item -> {
        OmsPlanning elm =BeanUtil.toBean(item, OmsPlanning.class);
        elm.setBatchStartTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME
elm.setIsUpdate("FALSE");
elm.setUpdateStatus("UNCHANGED");
elm.setIsEditing("FALSE");
elm.setSubjectLifeCycle("CURRENTLY_VALID");
elm.setReleaseInductionId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecInductionRecordId());//CURRENT_INDUCTIONID
elm.setReleaseTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME

        return elm;
      }).collect(Collectors.toList());//objList-to-objLists//sourceId:162505_1
    }
  
    /*3-5-01批量改规划资料为当前有效[2918]   */
    
      bOOLEAN = mOmsPlanningService.batchUpdatePlanData(listOmsPlanning_2);
      
      

           }
    
//步骤2: 3-5-01查规划资料列表 - queryPlanDataList
     List<OmsPlanning> listOmsPlanning_3 =new ArrayList<>();
    QueryPlanDataListReq queryPlanDataListReq_1=new QueryPlanDataListReq();
  queryPlanDataListReq_1.setIsMainplan("FALSE");//sourceId:162580_1
queryPlanDataListReq_1.setUpdateStatus("ARCHIVE");//sourceId:162577_1
if(reqDto!=null){
      queryPlanDataListReq_1.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:162575_1
queryPlanDataListReq_1.setBatchCode(reqDto.getBatchCode());//SimpleFieldAssign//sourceId:162576_1
    }
  
    /*3-5-01查想存档非总规划资料列表[2536]   */
    Assert.isNull(queryPlanDataListReq_1.getIsMainplan(),"D3-5发布批次处理规划资料更新状态(公共)-3-5-01查想存档非总规划资料列表-是否总规划不能为空",false);
Assert.isNull(queryPlanDataListReq_1.getEvaluationTemplateId(),"D3-5发布批次处理规划资料更新状态(公共)-3-5-01查想存档非总规划资料列表-冗余评价模板ID不能为空",false);
Assert.isNull(queryPlanDataListReq_1.getBatchCode(),"D3-5发布批次处理规划资料更新状态(公共)-3-5-01查想存档非总规划资料列表-批次标识不能为空",false);
Assert.isNull(queryPlanDataListReq_1.getUpdateStatus(),"D3-5发布批次处理规划资料更新状态(公共)-3-5-01查想存档非总规划资料列表-批次下更新状态不能为空",false);
      listOmsPlanning_3 = mOmsPlanningService.queryPlanDataList(queryPlanDataListReq_1);
      
      


//步骤3: 3-5-01批量改规划资料 - batchUpdatePlanData
     boolean bOOLEAN_1 ;
    if(listOmsPlanning_3 !=null&& !CollectionUtil.isEmpty(listOmsPlanning_3)&& listOmsPlanning_3.size()>0 ){
          List<OmsPlanning> listOmsPlanning_5=new ArrayList<>();
  if(listOmsPlanning_3!= null&& !CollectionUtil.isEmpty(listOmsPlanning_3)&&  listOmsPlanning_3 !=null&& !CollectionUtil.isEmpty(listOmsPlanning_3)){
      listOmsPlanning_5 = listOmsPlanning_3.stream().map(item -> {
        OmsPlanning elm =BeanUtil.toBean(item, OmsPlanning.class);
        elm.setBatchEndtTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME
elm.setIsUpdate("FALSE");
elm.setArchivngType("ARCHIVED");
elm.setIsArchive("TRUE");
elm.setSubjectLifeCycle("ARCHIVING");
elm.setArchiveInductionId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecInductionRecordId());//CURRENT_INDUCTIONID
elm.setArchiveTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME

        return elm;
      }).collect(Collectors.toList());//objList-to-objLists//sourceId:162586_1
    }
  
    /*3-5-01批量改规划资料为历史存档[2918]   */
    
      bOOLEAN_1 = mOmsPlanningService.batchUpdatePlanData(listOmsPlanning_5);
      
      

           }
    
ReleaseBatchHandleEvaPlanUpdStatusComRespDto retData = new ReleaseBatchHandleEvaPlanUpdStatusComRespDto();
  
  

  
  
return retData;
  }
/**
   * D3-5查询中层规划资料列表[4476]
   * gen by moon at 10/23/2022, 7:03:55 PM
   */
  @Trace(operationName = "D3-5查询中层规划资料列表")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public QueryMidPlanDataListRespDto queryMidPlanDataList(QueryMidPlanDataListReqDto reqDto){
    
      
      List<OmsPlanning> listOmsPlanning_1 =new ArrayList<>();
List<OmsVirtualOrgMemberDept> listOmsVirtualOrgMemberDept_1 =new ArrayList<>();
//步骤0: 3-2-02查评价模板详情 - queryEvaTempDetail
     OmsEvaluationTemplate omsEvaluationTemplate = null;
    QueryEvaTempDetailReq queryEvaTempDetailReq=new QueryEvaTempDetailReq();
  if(reqDto!=null){
      queryEvaTempDetailReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:312605_1
queryEvaTempDetailReq.setArchivngType(reqDto.getArchivngType());//SimpleFieldAssign//sourceId:312887_1
queryEvaTempDetailReq.setIsArchive(reqDto.getIsArchive());//SimpleFieldAssign//sourceId:312888_1
queryEvaTempDetailReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:312891_1
    }
  
    /*3-2-02查评价模板详情[2316]   */

      omsEvaluationTemplate = mOmsEvaluationTemplateService.queryEvaTempDetail(queryEvaTempDetailReq);
      Assert.isTrue(omsEvaluationTemplate== null||  omsEvaluationTemplate.getEvaluationTemplateId() ==null,"返回值不能为空",false);
      
      
    
//步骤1: 3-3-09查被评对象目标周期详情 - queryEvaObjTargetCycleDetail
     OmsEvaluationObjectTargetCycle omsEvaluationObjectTargetCycle = null;
    if(omsEvaluationTemplate !=null){
          QueryEvaObjTargetCycleDetailReq queryEvaObjTargetCycleDetailReq=new QueryEvaObjTargetCycleDetailReq();
  queryEvaObjTargetCycleDetailReq.setEvaObjEntityId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:312691_1
queryEvaObjTargetCycleDetailReq.setEvaObjTableTypeCode("OMS_FRAMEWORK_SPACE");//sourceId:312692_1
queryEvaObjTargetCycleDetailReq.setEvaObjTypeCode("EVA_OBJECT");//sourceId:312693_1
queryEvaObjTargetCycleDetailReq.setTreeTypeCode("PLAN_TREE");//sourceId:312690_1
queryEvaObjTargetCycleDetailReq.setTargetCycleContentTypeCode("TARGET");//sourceId:312695_1
if(omsEvaluationTemplate!=null){
      queryEvaObjTargetCycleDetailReq.setTargetCycleContentId(omsEvaluationTemplate.getTargetId());//SimpleFieldAssign//sourceId:312694_1
    }
if(reqDto!=null){
      queryEvaObjTargetCycleDetailReq.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:312716_1
queryEvaObjTargetCycleDetailReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:312700_1
queryEvaObjTargetCycleDetailReq.setArchivngType(reqDto.getArchivngType());//SimpleFieldAssign//sourceId:312721_1
queryEvaObjTargetCycleDetailReq.setIsArchive(reqDto.getIsArchive());//SimpleFieldAssign//sourceId:312698_1
    }
  
    /*3-3-09查目标评价对象树周期目标ID[2313]   */
    Assert.isNull(queryEvaObjTargetCycleDetailReq.getEvaObjEntityId(),"D3-5查询中层规划资料列表-3-3-09查目标评价对象树周期目标ID-被评对象内容表主键ID不能为空",false);
Assert.isNull(queryEvaObjTargetCycleDetailReq.getEvaObjTableTypeCode(),"D3-5查询中层规划资料列表-3-3-09查目标评价对象树周期目标ID-被评对象内容表类型编码不能为空",false);
Assert.isNull(queryEvaObjTargetCycleDetailReq.getEvaObjTypeCode(),"D3-5查询中层规划资料列表-3-3-09查目标评价对象树周期目标ID-被评对象类型编码不能为空",false);
Assert.isNull(queryEvaObjTargetCycleDetailReq.getTreeTypeCode(),"D3-5查询中层规划资料列表-3-3-09查目标评价对象树周期目标ID-树类型编码不能为空",false);
Assert.isNull(queryEvaObjTargetCycleDetailReq.getTargetCycleContentTypeCode(),"D3-5查询中层规划资料列表-3-3-09查目标评价对象树周期目标ID-关联目标内容类型编码不能为空",false);
Assert.isNull(queryEvaObjTargetCycleDetailReq.getTargetCycleContentId(),"D3-5查询中层规划资料列表-3-3-09查目标评价对象树周期目标ID-关联目标内容ID不能为空",false);
Assert.isNull(queryEvaObjTargetCycleDetailReq.getCycleId(),"D3-5查询中层规划资料列表-3-3-09查目标评价对象树周期目标ID-周期ID不能为空",false);
Assert.isNull(queryEvaObjTargetCycleDetailReq.getEvaluationTemplateId(),"D3-5查询中层规划资料列表-3-3-09查目标评价对象树周期目标ID-冗余评价模板ID不能为空",false);
      omsEvaluationObjectTargetCycle = mOmsEvaluationObjectTargetCycleService.queryEvaObjTargetCycleDetail(queryEvaObjTargetCycleDetailReq);
      Assert.isTrue(omsEvaluationObjectTargetCycle== null||  omsEvaluationObjectTargetCycle.getEvaObjTargetCycleId() ==null,"返回值不能为空",false);
      
      
           }
    
//步骤2: 3-5-01查规划资料列表 - queryPlanDataList
     List<OmsPlanning> listOmsPlanning =new ArrayList<>();
    if(omsEvaluationObjectTargetCycle !=null){
          QueryPlanDataListReq queryPlanDataListReq=new QueryPlanDataListReq();
  if(reqDto!=null){
      queryPlanDataListReq.setDeptId(reqDto.getDeptId());//SimpleFieldAssign//sourceId:312586_1
queryPlanDataListReq.setPlanSchemeClass(reqDto.getPlanSchemeClass());//SimpleFieldAssign//sourceId:312582_1
queryPlanDataListReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:312590_1
queryPlanDataListReq.setArchivngType(reqDto.getArchivngType());//SimpleFieldAssign//sourceId:312885_1
queryPlanDataListReq.setIsArchive(reqDto.getIsArchive());//SimpleFieldAssign//sourceId:312886_1
queryPlanDataListReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:312584_1
    }
if(omsEvaluationObjectTargetCycle!=null){
      queryPlanDataListReq.setEvaObjTargetCycleId(omsEvaluationObjectTargetCycle.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:312579_1
    }
if(omsEvaluationTemplate!=null){
      queryPlanDataListReq.setPlanningType(omsEvaluationTemplate.getPlanningType());//SimpleFieldAssign//sourceId:312580_1
    }
  
    /*3-5-01查规划资料列表[2536]   */
    Assert.isNull(queryPlanDataListReq.getDeptId(),"D3-5查询中层规划资料列表-3-5-01查规划资料列表-牵头部门ID不能为空",false);
Assert.isNull(queryPlanDataListReq.getEvaObjTargetCycleId(),"D3-5查询中层规划资料列表-3-5-01查规划资料列表-被评对象目标周期ID不能为空",false);
Assert.isNull(queryPlanDataListReq.getPlanningType(),"D3-5查询中层规划资料列表-3-5-01查规划资料列表-规划类型不能为空",false);
Assert.isNull(queryPlanDataListReq.getPlanSchemeClass(),"D3-5查询中层规划资料列表-3-5-01查规划资料列表-规划方案类别不能为空",false);
Assert.isNull(queryPlanDataListReq.getEvaluationTemplateId(),"D3-5查询中层规划资料列表-3-5-01查规划资料列表-冗余评价模板ID不能为空",false);
      listOmsPlanning = mOmsPlanningService.queryPlanDataList(queryPlanDataListReq);
      
      
      listOmsPlanning_1 = listOmsPlanning;
           }
    
//步骤3: 3-6-03批量查资料匹配虚拟成员部门 - batchQueryInfoDataVirtualOrgMemberDept
     List<OmsVirtualOrgMemberDept> listOmsVirtualOrgMemberDept =new ArrayList<>();
    if(listOmsPlanning !=null&& !CollectionUtil.isEmpty(listOmsPlanning)&& listOmsPlanning.size()>0 ){
          BatchQueryInfoDataVirtualOrgMemberDeptReq batchQueryInfoDataVirtualOrgMemberDeptReq=new BatchQueryInfoDataVirtualOrgMemberDeptReq();
  batchQueryInfoDataVirtualOrgMemberDeptReq.setVirtualOrgMemberDeptList(listOmsPlanning.stream().map(item->item.getDeptId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:312592_1
batchQueryInfoDataVirtualOrgMemberDeptReq.setIsDisplay("TRUE");//sourceId:312894_1
if(reqDto!=null){
      batchQueryInfoDataVirtualOrgMemberDeptReq.setArchivngType(reqDto.getArchivngType());//SimpleFieldAssign//sourceId:312896_1
batchQueryInfoDataVirtualOrgMemberDeptReq.setIsArchive(reqDto.getIsArchive());//SimpleFieldAssign//sourceId:312892_1
batchQueryInfoDataVirtualOrgMemberDeptReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:312594_1
    }
  
    /*3-6-03批量查资料匹配虚拟成员部门[2540]   */
    Assert.isNull(batchQueryInfoDataVirtualOrgMemberDeptReq.getIsDisplay(),"D3-5查询中层规划资料列表-3-6-03批量查资料匹配虚拟成员部门-是否外部展示不能为空",false);
      listOmsVirtualOrgMemberDept = mOmsVirtualOrgMemberDeptService.batchQueryInfoDataVirtualOrgMemberDept(batchQueryInfoDataVirtualOrgMemberDeptReq);
      
      
      listOmsVirtualOrgMemberDept_1 = listOmsVirtualOrgMemberDept;
           }
    
QueryMidPlanDataListRespDto retData = new QueryMidPlanDataListRespDto();
  //数据集融合  MoreListToOneSource
        if(listOmsPlanning_1!= null&& !CollectionUtil.isEmpty(listOmsPlanning_1) && !CollectionUtil.isEmpty(listOmsPlanning_1) ){
          for (OmsPlanning omsPlanning : listOmsPlanning_1) {
              PlanningDto retElm = new PlanningDto();
             retElm.setPlanningId(omsPlanning.getPlanningId());//SimpleFieldAssign//sourceId:94802_2
retElm.setPlanningShortName(omsPlanning.getPlanningShortName());//SimpleFieldAssign//sourceId:94803_2
retElm.setDeptId(omsPlanning.getDeptId());//SimpleFieldAssign//sourceId:94804_2
retElm.setTargetCategoryId(omsPlanning.getTargetCategoryId());//SimpleFieldAssign//sourceId:94805_2
              retData.getPlanningList().add(retElm);
               if(listOmsVirtualOrgMemberDept_1!= null&& !CollectionUtil.isEmpty(listOmsVirtualOrgMemberDept_1)){
          for (OmsVirtualOrgMemberDept omsVirtualOrgMemberDept : listOmsVirtualOrgMemberDept_1) {
                if (omsVirtualOrgMemberDept.getDeptId().equals(omsPlanning.getDeptId())) {
                 retElm.setVirtualOrgDeptStatus(omsVirtualOrgMemberDept.getVirtualOrgDeptStatus());//SimpleFieldAssign//sourceId:94806_2
                }
            }
          }

          }
        }//sourceId:312634_1
  

  
  
return retData;
  }
/**
   * D3-删除当前规划资料(公共)[4594]
   * gen by moon at 6/9/2024, 1:07:11 AM
   */
  @Trace(operationName = "D3-删除当前规划资料(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public DeleteCurrentPlanDataComRespDto deleteCurrentPlanDataCom(DeleteCurrentPlanDataComReqDto reqDto){
    
      
      //步骤0: 3-5-01查规划资料详情 - queryPlanDataDetail
     OmsPlanning omsPlanning = null;
    QueryPlanDataDetailReq queryPlanDataDetailReq=new QueryPlanDataDetailReq();
  if(reqDto!=null){
      queryPlanDataDetailReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:334961_1
    }
  
    /*3-5-01查规划资料详情[2515]   */
    Assert.isNull(queryPlanDataDetailReq.getEvaluationTemplateId(),"D3-删除当前规划资料(公共)-3-5-01查规划资料详情-冗余评价模板ID不能为空",false);
      omsPlanning = mOmsPlanningService.queryPlanDataDetail(queryPlanDataDetailReq)/*vcase invoke 本地 method 方法调用;*/;
      
      
      
    
//步骤1: 3-5-01删除规划资料 - deletePlanData
     boolean bOOLEAN ;
    if(omsPlanning !=null){
          String string=new String();
  if(omsPlanning!=null){
      string=omsPlanning.getPlanningId();;//SimpleFieldAssign//sourceId:334959_1
    }
  
    /*3-5-01删除规划资料[4092]   */
    Assert.isNull(string,"D3-删除当前规划资料(公共)-3-5-01删除规划资料-规划资料ID不能为空",false);
      bOOLEAN = mOmsPlanningService.deletePlanData(string)/*vcase invoke 本地 method 方法调用;*/;
      
      
      
           }
    
//步骤2: 3-5-2查询业务应用超文本内容列表 - queryBusAppHypertextContentList
     List<OmsBizAppHypertextContent> listOmsBizAppHypertextContent =new ArrayList<>();
    if(omsPlanning !=null){
          QueryBusAppHypertextContentListReq queryBusAppHypertextContentListReq=new QueryBusAppHypertextContentListReq();
  queryBusAppHypertextContentListReq.setReleationContTypeCode("PLANNING_DATA");//sourceId:334967_1
if(omsPlanning!=null){
      queryBusAppHypertextContentListReq.setReleationContId(omsPlanning.getPlanningId());//SimpleFieldAssign//sourceId:334968_1
    }
  
    /*3-5-2查询业务应用超文本内容列表[4616]   */
    Assert.isNull(queryBusAppHypertextContentListReq.getReleationContId(),"D3-删除当前规划资料(公共)-3-5-2查询业务应用超文本内容列表-超文本内容关联主键ID不能为空",false);
Assert.isNull(queryBusAppHypertextContentListReq.getReleationContTypeCode(),"D3-删除当前规划资料(公共)-3-5-2查询业务应用超文本内容列表-超文本内容关联类型编码不能为空",false);
      listOmsBizAppHypertextContent = mOmsBizAppHypertextContentService.queryBusAppHypertextContentList(queryBusAppHypertextContentListReq)/*vcase invoke 本地 method 方法调用;*/;
      
      
      
           }
    
//步骤3: 3-5-2批量删超文本内容 - batchDeleteHypertextContent
     boolean bOOLEAN_1 ;
    if(listOmsBizAppHypertextContent !=null&& !CollectionUtil.isEmpty(listOmsBizAppHypertextContent)&& listOmsBizAppHypertextContent.size()>0 ){
          List<String> listString=new ArrayList<>();
  if(listOmsBizAppHypertextContent!= null&& !CollectionUtil.isEmpty(listOmsBizAppHypertextContent)&&  listOmsBizAppHypertextContent !=null&& !CollectionUtil.isEmpty(listOmsBizAppHypertextContent)){
  listString = listOmsBizAppHypertextContent.stream().map(item->item.getHypertextContentId())
        .collect(Collectors.toList());/*list-to-strings*///sourceId:334970_1
    }

    /*3-5-2批量删超文本内容[4227]   */
    
      bOOLEAN_1 = mOmsBizAppHypertextContentService.batchDeleteHypertextContent(listString)/*vcase invoke 本地 method 方法调用;*/;
      
      
      
           }
    
//步骤4: D2批量删文档关系或文档(公共) - batchDeleteDocRelOrDocCom
     BatchDeleteDocRelOrDocComRespDto batchDeleteDocRelOrDocComRespDto = null;
    if(omsPlanning !=null){
          BatchDeleteDocRelOrDocComReqDto batchDeleteDocRelOrDocComReqDto=new BatchDeleteDocRelOrDocComReqDto();
  batchDeleteDocRelOrDocComReqDto.setDocUseSceneCode("PLANNING");//sourceId:1857731_1
batchDeleteDocRelOrDocComReqDto.setDocUseType("PLAN_DATA");//sourceId:1857732_1
batchDeleteDocRelOrDocComReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1857738_1
if(omsPlanning!=null){
      batchDeleteDocRelOrDocComReqDto.setOwnEntityId(omsPlanning.getPlanningId());//SimpleFieldAssign//sourceId:1857735_1
    }
if(reqDto!=null){
      batchDeleteDocRelOrDocComReqDto.setThemeContentId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1857737_1
           }
    
    /*D2批量删文档关系或文档(公共)[9755]   */
    Assert.isNull(batchDeleteDocRelOrDocComReqDto.getDocUseSceneCode(),"D3-删除当前规划资料(公共)-D2批量删文档关系或文档(公共)-文档应用业务场景不能为空",false);
Assert.isNull(batchDeleteDocRelOrDocComReqDto.getDocUseType(),"D3-删除当前规划资料(公共)-D2批量删文档关系或文档(公共)-文档用途类型不能为空",false);
Assert.isNull(batchDeleteDocRelOrDocComReqDto.getOwnEntityId(),"D3-删除当前规划资料(公共)-D2批量删文档关系或文档(公共)-归属内容表主键ID不能为空",false);
Assert.isNull(batchDeleteDocRelOrDocComReqDto.getThemeContentId(),"D3-删除当前规划资料(公共)-D2批量删文档关系或文档(公共)-主题内容ID不能为空",false);
Assert.isNull(batchDeleteDocRelOrDocComReqDto.getSpaceId(),"D3-删除当前规划资料(公共)-D2批量删文档关系或文档(公共)-创建于空间ID不能为空",false);
      batchDeleteDocRelOrDocComRespDto = fwCompUnstructuredDataClient.batchDeleteDocRelOrDocCom(batchDeleteDocRelOrDocComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      
           }
    
DeleteCurrentPlanDataComRespDto retData = new DeleteCurrentPlanDataComRespDto();
  
  

  
  
return retData;
  }
/**
   * D3-5更新规划资料(公共)[4628]
   * gen by moon at 5/18/2023, 11:01:32 PM
   */
  @Trace(operationName = "D3-5更新规划资料(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public RefreshPlanDataComRespDto refreshPlanDataCom(RefreshPlanDataComReqDto reqDto){
    
      
      //步骤0: 3-3-09查被评对象目标周期详情 - queryEvaObjTargetCycleDetail
     OmsEvaluationObjectTargetCycle omsEvaluationObjectTargetCycle = null;
    QueryEvaObjTargetCycleDetailReq queryEvaObjTargetCycleDetailReq=new QueryEvaObjTargetCycleDetailReq();
  queryEvaObjTargetCycleDetailReq.setEvaObjEntityId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:336395_1
queryEvaObjTargetCycleDetailReq.setEvaObjTableTypeCode("OMS_FRAMEWORK_SPACE");//sourceId:336396_1
queryEvaObjTargetCycleDetailReq.setEvaObjTypeCode("EVA_OBJECT");//sourceId:336397_1
queryEvaObjTargetCycleDetailReq.setTreeTypeCode("PLAN_TREE");//sourceId:336398_1
queryEvaObjTargetCycleDetailReq.setTargetCycleContentTypeCode("TARGET");//sourceId:336399_1
queryEvaObjTargetCycleDetailReq.setIsParentCycle("TRUE");//sourceId:336401_1
queryEvaObjTargetCycleDetailReq.setIsArchive("FALSE");//sourceId:336403_1
if(reqDto!=null){
      queryEvaObjTargetCycleDetailReq.setTargetCycleContentId(reqDto.getTargetId());//SimpleFieldAssign//sourceId:336400_1
queryEvaObjTargetCycleDetailReq.setTargetId(reqDto.getTargetId());//SimpleFieldAssign//sourceId:336402_1
    }
  
    /*3-3-09查目标被评对象目标周期（父周期ID)[2313]   */
    Assert.isNull(queryEvaObjTargetCycleDetailReq.getEvaObjEntityId(),"D3-5更新规划资料(公共)-3-3-09查目标被评对象目标周期（父周期ID)-被评对象内容表主键ID不能为空",false);
Assert.isNull(queryEvaObjTargetCycleDetailReq.getEvaObjTableTypeCode(),"D3-5更新规划资料(公共)-3-3-09查目标被评对象目标周期（父周期ID)-被评对象内容表类型编码不能为空",false);
Assert.isNull(queryEvaObjTargetCycleDetailReq.getEvaObjTypeCode(),"D3-5更新规划资料(公共)-3-3-09查目标被评对象目标周期（父周期ID)-被评对象类型编码不能为空",false);
Assert.isNull(queryEvaObjTargetCycleDetailReq.getTreeTypeCode(),"D3-5更新规划资料(公共)-3-3-09查目标被评对象目标周期（父周期ID)-树类型编码不能为空",false);
Assert.isNull(queryEvaObjTargetCycleDetailReq.getTargetCycleContentTypeCode(),"D3-5更新规划资料(公共)-3-3-09查目标被评对象目标周期（父周期ID)-关联目标内容类型编码不能为空",false);
Assert.isNull(queryEvaObjTargetCycleDetailReq.getTargetCycleContentId(),"D3-5更新规划资料(公共)-3-3-09查目标被评对象目标周期（父周期ID)-关联目标内容ID不能为空",false);
Assert.isNull(queryEvaObjTargetCycleDetailReq.getIsParentCycle(),"D3-5更新规划资料(公共)-3-3-09查目标被评对象目标周期（父周期ID)-是否父周期不能为空",false);
Assert.isNull(queryEvaObjTargetCycleDetailReq.getTargetId(),"D3-5更新规划资料(公共)-3-3-09查目标被评对象目标周期（父周期ID)-冗余目标ID不能为空",false);
Assert.isNull(queryEvaObjTargetCycleDetailReq.getIsArchive(),"D3-5更新规划资料(公共)-3-3-09查目标被评对象目标周期（父周期ID)-是否存档不能为空",false);
      omsEvaluationObjectTargetCycle = mOmsEvaluationObjectTargetCycleService.queryEvaObjTargetCycleDetail(queryEvaObjTargetCycleDetailReq)/*vcase invoke 本地 method 方法调用;*/;
      
      
      
    
//步骤1: 3-5-01查规划资料详情 - queryPlanDataDetail
     OmsPlanning omsPlanning = null;
    QueryPlanDataDetailReq queryPlanDataDetailReq=new QueryPlanDataDetailReq();
  queryPlanDataDetailReq.setIsMainplan("TRUE");//sourceId:336425_1
queryPlanDataDetailReq.setIsArchive("FALSE");//sourceId:336414_1
if(reqDto!=null){
      queryPlanDataDetailReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:336423_1
    }
  
    /*3-5-01查规划资料详情[2515]   */
    Assert.isNull(queryPlanDataDetailReq.getEvaluationTemplateId(),"D3-5更新规划资料(公共)-3-5-01查规划资料详情-冗余评价模板ID不能为空",false);
Assert.isNull(queryPlanDataDetailReq.getIsMainplan(),"D3-5更新规划资料(公共)-3-5-01查规划资料详情-是否总规划不能为空",false);
Assert.isNull(queryPlanDataDetailReq.getIsArchive(),"D3-5更新规划资料(公共)-3-5-01查规划资料详情-是否存档不能为空",false);
      omsPlanning = mOmsPlanningService.queryPlanDataDetail(queryPlanDataDetailReq)/*vcase invoke 本地 method 方法调用;*/;
      
      
      
    
//步骤2: 3-5-01修改规划资料 - updatePlanData
     boolean bOOLEAN ;
    if(omsPlanning !=null){
          OmsPlanning omsPlanning_2=new OmsPlanning();
  if(omsPlanning!=null){
      omsPlanning_2.setPlanningId(omsPlanning.getPlanningId());//SimpleFieldAssign//sourceId:336426_1
    }
if(omsEvaluationObjectTargetCycle!=null){
      omsPlanning_2.setEvaObjTargetCycleId(omsEvaluationObjectTargetCycle.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:336442_1
    }
  
    /*3-5-01修改规划资料[2917]   */
    Assert.isNull(omsPlanning_2.getPlanningId(),"D3-5更新规划资料(公共)-3-5-01修改规划资料-规划资料ID不能为空",false);
Assert.isNull(omsPlanning_2.getEvaObjTargetCycleId(),"D3-5更新规划资料(公共)-3-5-01修改规划资料-被评对象目标周期ID不能为空",false);
      bOOLEAN = mOmsPlanningService.updatePlanData(omsPlanning_2)/*vcase invoke 本地 method 方法调用;*/;
      
      
      
           }
    
RefreshPlanDataComRespDto retData = new RefreshPlanDataComRespDto();
  
  

  
  
return retData;
  }
/**
   * D3-13删除业务应用文档关系(公共)[3282]
   * gen by moon at 11/15/2022, 3:45:46 PM
   */
  @Trace(operationName = "D3-13删除业务应用文档关系(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public DeleteBusAppDocRelaComRespDto deleteBusAppDocRelaCom(DeleteBusAppDocRelaComReqDto reqDto){


      //步骤0: 3-13-05删除业务应用文档关系 - deleteBusAppDocRela
     boolean bOOLEAN ;
    String string=new String();
  if(reqDto!=null){
      string=reqDto.getUnstructuredDataRelationshipId();;//SimpleFieldAssign//sourceId:126009_1
    }

    /*3-13-05删除业务应用文档关系[3239]   */
    Assert.isNull(string,"D3-13删除业务应用文档关系(公共)-3-13-05删除业务应用文档关系-文档关系ID不能为空",false);
      bOOLEAN = mOmsBasicInstanceUnstructuredRelationshipService.deleteBusAppDocRela(string);




DeleteBusAppDocRelaComRespDto retData = new DeleteBusAppDocRelaComRespDto();





return retData;
  }
/**
   * 11111D3-13查询业务应用文档关系列表(公共)[3283]
   * gen by moon at 5/23/2024, 11:50:26 PM
   */
  @Trace(operationName = "D3-13查询业务应用文档关系列表(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public QueryBusAppDocRelaListComRespDto queryBusAppDocRelaListCom(QueryBusAppDocRelaListComReqDto reqDto){


      List<OmsBasicInstanceUnstructuredRelationship> listOmsBasicInstanceUnstructuredRelationship_1 =new ArrayList<>();
BatchQueryDocumentComRespDto batchQueryDocumentComRespDto_1 =null;
//步骤0: 3-13-05查业务应用文档关系列表 - queryBusAppDocRelaList
     List<OmsBasicInstanceUnstructuredRelationship> listOmsBasicInstanceUnstructuredRelationship =new ArrayList<>();
    QueryBusAppDocRelaListReq queryBusAppDocRelaListReq=new QueryBusAppDocRelaListReq();
  if(reqDto!=null){
      queryBusAppDocRelaListReq.setUnstructuredDataId(reqDto.getUnstructuredDataId());//SimpleFieldAssign//sourceId:126038_1
queryBusAppDocRelaListReq.setBaseFileRelationshipType(reqDto.getBaseFileRelationshipType());//SimpleFieldAssign//sourceId:127217_1
queryBusAppDocRelaListReq.setDocUseType(reqDto.getDocUseType());//SimpleFieldAssign//sourceId:786491_1
queryBusAppDocRelaListReq.setBizAppFileTypeCode(reqDto.getBizAppFileTypeCode());//SimpleFieldAssign//sourceId:127218_1
queryBusAppDocRelaListReq.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:127219_1
    }

    /*3-13-05查业务应用文档关系列表[2517]   */
    Assert.isNull(queryBusAppDocRelaListReq.getBizAppFileTypeCode(),"D3-13查询业务应用文档关系列表(公共)-3-13-05查业务应用文档关系列表-业务应用文档归属类型编码不能为空",false);
Assert.isNull(queryBusAppDocRelaListReq.getEntityId(),"D3-13查询业务应用文档关系列表(公共)-3-13-05查业务应用文档关系列表-归属内容实例ID不能为空",false);
      listOmsBasicInstanceUnstructuredRelationship = mOmsBasicInstanceUnstructuredRelationshipService.queryBusAppDocRelaList(queryBusAppDocRelaListReq)/*vcase invoke 本地 method 方法调用;*/;


      listOmsBasicInstanceUnstructuredRelationship_1 = listOmsBasicInstanceUnstructuredRelationship;

//步骤1: D2-批量查询文档列表(公共) - batchQueryDocumentCom
     BatchQueryDocumentComRespDto batchQueryDocumentComRespDto = null;
    if(listOmsBasicInstanceUnstructuredRelationship !=null&& !CollectionUtil.isEmpty(listOmsBasicInstanceUnstructuredRelationship)&& listOmsBasicInstanceUnstructuredRelationship.size()>0 ){
          BatchQueryDocumentComReqDto batchQueryDocumentComReqDto=new BatchQueryDocumentComReqDto();
  batchQueryDocumentComReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1798187_1
  if(listOmsBasicInstanceUnstructuredRelationship!= null&& !CollectionUtil.isEmpty(listOmsBasicInstanceUnstructuredRelationship)&&  listOmsBasicInstanceUnstructuredRelationship !=null&& !CollectionUtil.isEmpty(listOmsBasicInstanceUnstructuredRelationship)){
  batchQueryDocumentComReqDto.setDocumentList(listOmsBasicInstanceUnstructuredRelationship.stream().map(item->item.getUnstructuredDataId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:342845_1
    }

    /*D2-批量查询文档列表(公共)[2670]   */
    Assert.isNull(batchQueryDocumentComReqDto.getSpaceId(),"D3-13查询业务应用文档关系列表(公共)-D2-批量查询文档列表(公共)-创建于空间ID不能为空",false);
      batchQueryDocumentComRespDto = fwCompUnstructuredDataClient.batchQueryDocumentCom(batchQueryDocumentComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      batchQueryDocumentComRespDto_1 = batchQueryDocumentComRespDto;
           }

QueryBusAppDocRelaListComRespDto retData = new QueryBusAppDocRelaListComRespDto();
  //数据集融合  MoreListToOneSource
        if(listOmsBasicInstanceUnstructuredRelationship_1!= null&& !CollectionUtil.isEmpty(listOmsBasicInstanceUnstructuredRelationship_1) && !CollectionUtil.isEmpty(listOmsBasicInstanceUnstructuredRelationship_1) ){
          for (OmsBasicInstanceUnstructuredRelationship omsBasicInstanceUnstructuredRelationship : listOmsBasicInstanceUnstructuredRelationship_1) {
              BusAppDocRelaDto retElm = new BusAppDocRelaDto();
             retElm.setUnstructuredDataRelationshipId(omsBasicInstanceUnstructuredRelationship.getUnstructuredDataRelationshipId());//SimpleFieldAssign//sourceId:64715_2
retElm.setUnstructuredDataId(omsBasicInstanceUnstructuredRelationship.getUnstructuredDataId());//SimpleFieldAssign//sourceId:64716_2
retElm.setFileRelativePathAccess(omsBasicInstanceUnstructuredRelationship.getFileRelativePathAccess());//SimpleFieldAssign//sourceId:64717_2
retElm.setBizAppFileTypeCode(omsBasicInstanceUnstructuredRelationship.getBizAppFileTypeCode());//SimpleFieldAssign//sourceId:64718_2
retElm.setEntityId(omsBasicInstanceUnstructuredRelationship.getEntityId());//SimpleFieldAssign//sourceId:64719_2
retElm.setOrderNumber(omsBasicInstanceUnstructuredRelationship.getOrderNumber());//SimpleFieldAssign//sourceId:64720_2
retElm.setOperateTime(omsBasicInstanceUnstructuredRelationship.getOperateTime());//SimpleFieldAssign//sourceId:64721_2
              retData.getBusAppDocRelaList().add(retElm);
               if(batchQueryDocumentComRespDto_1!= null){
          for (com.wicket.okrcomponent.integration.dto.DocumentDto documentDto : batchQueryDocumentComRespDto_1.getDocumentList()) {
                if (documentDto.getUnstructuredDataId().equals(omsBasicInstanceUnstructuredRelationship.getUnstructuredDataId())) {
                 if(batchQueryDocumentComRespDto_1!=null){
      retElm.setPostfix(documentDto.getPostfix());//SimpleFieldAssign//sourceId:100033_2
retElm.setFileSize(documentDto.getFileSize());//SimpleFieldAssign//sourceId:100034_2
retElm.setUnstructuredDataName(documentDto.getUnstructuredDataName());//SimpleFieldAssign//sourceId:100035_2
    }
                }
            }
          }

          }
        }//sourceId:126041_1




return retData;
  }
/**
   * D3-5判断是否总规划(公共)[4540]
   * gen by moon at 10/6/2022, 1:49:51 AM
   */
  @Trace(operationName = "D3-5判断是否总规划(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public JudgeIsMainplanComRespDto judgeIsMainplanCom(JudgeIsMainplanComReqDto reqDto){


      ObtainReceiveFieldRespDto receptionServiceRes_1 =null;
ObtainReceiveFieldRespDto receptionServiceRes_3 =null;
if((reqDto!= null&&  reqDto.getPlanSchemeClass() !=null && reqDto.getPlanSchemeClass().equals("MASTER_PLAN"))) {
        //if(D3-5判断是否总规划(公共).规划方案类别 等于 总规划)  16164

//ModelCode: receptionService
        ObtainReceiveFieldRespDto receptionServiceRes = null;
    ObtainReceiveFieldReqDto receptionServiceReq=new ObtainReceiveFieldReqDto();
  receptionServiceReq.setIsMainplan("TRUE");//sourceId:321804_1_16165

    /*M3-是总规划[2451]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getIsMainplan(),"D3-5判断是否总规划(公共)-M3-是总规划-是否总规划不能为空",false);
      receptionServiceRes = nbPlanData.obtainReceiveField(receptionServiceReq);


      receptionServiceRes_1 = receptionServiceRes;
//processBranchName:正常结束 ,processBranchId:16166

      }
else if((reqDto!= null&&  reqDto.getPlanSchemeClass() !=null && reqDto.getPlanSchemeClass().equals("SUB_PLAN")||reqDto!= null&&  reqDto.getPlanSchemeClass() !=null && reqDto.getPlanSchemeClass().equals("LITTLE_PLAN"))){
       //elseif((D3-5判断是否总规划(公共).规划方案类别 等于 分规划 or D3-5判断是否总规划(公共).规划方案类别 等于 子规划))  16167

//ModelCode: receptionService
        ObtainReceiveFieldRespDto receptionServiceRes_2 = null;
    ObtainReceiveFieldReqDto receptionServiceReq_1=new ObtainReceiveFieldReqDto();
  receptionServiceReq_1.setIsMainplan("FALSE");//sourceId:322171_1_16168

    /*M3-非总规划[2451]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_1.getIsMainplan(),"D3-5判断是否总规划(公共)-M3-非总规划-是否总规划不能为空",false);
      receptionServiceRes_2 = nbPlanData.obtainReceiveField(receptionServiceReq_1);


      receptionServiceRes_3 = receptionServiceRes_2;
//processBranchName:正常结束 ,processBranchId:16169

    }
JudgeIsMainplanComRespDto retData = new JudgeIsMainplanComRespDto();
  if(receptionServiceRes_1!=null){
      retData.setIsMainplan(receptionServiceRes_1.getIsMainplan());//SimpleFieldAssign//sourceId:322173_1
    }
if(receptionServiceRes_3!=null){
      retData.setIsMainplan(receptionServiceRes_3.getIsMainplan());//SimpleFieldAssign//sourceId:322173_1
    }




return retData;
  }
/**
   * D3判断更新规划资料操作可用(公共)[4096]
   * gen by moon at 11/11/2022, 5:25:56 AM
   */
  @Trace(operationName = "D3判断更新规划资料操作可用(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public JudgeUpdatePlanDataUsableComRespDto judgeUpdatePlanDataUsableCom(JudgeUpdatePlanDataUsableComReqDto reqDto){


      QueryTopMidBasicBatchOperateJudgeDetailComRespDto queryTopMidBasicBatchOperateJudgeDetailComRespDto_1 =null;
//virtualUsage 3-5-01查规划资料详情  13508
      OmsPlanning omsPlanning = null;
    QueryPlanDataDetailReq queryPlanDataDetailReq=new QueryPlanDataDetailReq();
  queryPlanDataDetailReq.setIsArchive("TRUE");//sourceId:222886_1_13508
if(reqDto!=null){
      queryPlanDataDetailReq.setPlanningId(reqDto.getPlanningId());//SimpleFieldAssign//sourceId:222880_1_13508
    }

    /*3-5-01查规划资料详情[2515]   */
    Assert.isNull(queryPlanDataDetailReq.getPlanningId(),"D3判断更新规划资料操作可用(公共)-3-5-01查规划资料详情-规划资料ID不能为空",false);
Assert.isNull(queryPlanDataDetailReq.getIsArchive(),"D3判断更新规划资料操作可用(公共)-3-5-01查规划资料详情-是否存档不能为空",false);
      omsPlanning = mOmsPlanningService.queryPlanDataDetail(queryPlanDataDetailReq);



if((omsPlanning != null )) {
        //if(3-5-01查规划资料详情.出参 值不等于空 )  13509

QueryTopMidBasicBatchOperateJudgeDetailComRespDto queryTopMidBasicBatchOperateJudgeDetailComRespDto = null;
    QueryTopMidBasicBatchOperateJudgeDetailComReqDto queryTopMidBasicBatchOperateJudgeDetailComReqDto=new QueryTopMidBasicBatchOperateJudgeDetailComReqDto();
  queryTopMidBasicBatchOperateJudgeDetailComReqDto.setBatchOperateScene("TOP");//sourceId:222895_1_13510
queryTopMidBasicBatchOperateJudgeDetailComReqDto.setEvaTempBatchMgtOperationType("TRAILING_OPERATION");//sourceId:307153_1_13510
if(reqDto!=null){
      queryTopMidBasicBatchOperateJudgeDetailComReqDto.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:222896_1_13510
queryTopMidBasicBatchOperateJudgeDetailComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:329864_1_13510
    }

    /*D3查询高中基层批次操作可用判断(公共)[3979]   */
    Assert.isNull(queryTopMidBasicBatchOperateJudgeDetailComReqDto.getBatchOperateScene(),"D3判断更新规划资料操作可用(公共)-D3查询高中基层批次操作可用判断(公共)-高/中/基层操作场景不能为空",false);
Assert.isNull(queryTopMidBasicBatchOperateJudgeDetailComReqDto.getEvaTempBatchMgtOperationType(),"D3判断更新规划资料操作可用(公共)-D3查询高中基层批次操作可用判断(公共)-评价模板批次下管理操作类型不能为空",false);
Assert.isNull(queryTopMidBasicBatchOperateJudgeDetailComReqDto.getEntityId(),"D3判断更新规划资料操作可用(公共)-D3查询高中基层批次操作可用判断(公共)-目标ID不能为空",false);
Assert.isNull(queryTopMidBasicBatchOperateJudgeDetailComReqDto.getEvaluationTemplateId(),"D3判断更新规划资料操作可用(公共)-D3查询高中基层批次操作可用判断(公共)-冗余评价模板ID不能为空",false);
      queryTopMidBasicBatchOperateJudgeDetailComRespDto = batchService.queryTopMidBasicBatchOperateJudgeDetailCom(queryTopMidBasicBatchOperateJudgeDetailComReqDto);


      queryTopMidBasicBatchOperateJudgeDetailComRespDto_1 = queryTopMidBasicBatchOperateJudgeDetailComRespDto;
//processBranchName:正常结束 ,processBranchId:13511

      }
else{
       //else  13512

//异常结束 13513
      throw new BizException("3300330300074","对不起，该规划资料不能存档！",false);
    }
JudgeUpdatePlanDataUsableComRespDto retData = new JudgeUpdatePlanDataUsableComRespDto();
  if(queryTopMidBasicBatchOperateJudgeDetailComRespDto_1!=null){
      retData.setOutputNum(queryTopMidBasicBatchOperateJudgeDetailComRespDto_1.getOutputNum());//SimpleFieldAssign//sourceId:222917_1
retData.setBatchCode(queryTopMidBasicBatchOperateJudgeDetailComRespDto_1.getBatchCode());//SimpleFieldAssign//sourceId:222918_1
retData.setBatchCurrentStatus(queryTopMidBasicBatchOperateJudgeDetailComRespDto_1.getBatchCurrentStatus());//SimpleFieldAssign//sourceId:222919_1
    }




return retData;
  }
/**
   * D3判断删除规划资料操作可用(公共)[4093]
   * gen by moon at 10/6/2022, 1:52:39 AM
   */
  @Trace(operationName = "D3判断删除规划资料操作可用(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public JudgeDeletePlanDataUsableComRespDto judgeDeletePlanDataUsableCom(JudgeDeletePlanDataUsableComReqDto reqDto){


      QueryTopMidBasicBatchOperateJudgeDetailComRespDto queryTopMidBasicBatchOperateJudgeDetailComRespDto_1 =null;
//virtualUsage 3-5-01查规划资料详情  13497
      OmsPlanning omsPlanning = null;
    QueryPlanDataDetailReq queryPlanDataDetailReq=new QueryPlanDataDetailReq();
  queryPlanDataDetailReq.setSubjectLifeCycle("EDITING");//sourceId:222627_1_13497
if(reqDto!=null){
      queryPlanDataDetailReq.setPlanningId(reqDto.getPlanningId());//SimpleFieldAssign//sourceId:222620_1_13497
    }

    /*3-5-01查规划资料详情[2515]   */
    Assert.isNull(queryPlanDataDetailReq.getPlanningId(),"D3判断删除规划资料操作可用(公共)-3-5-01查规划资料详情-规划资料ID不能为空",false);
Assert.isNull(queryPlanDataDetailReq.getSubjectLifeCycle(),"D3判断删除规划资料操作可用(公共)-3-5-01查规划资料详情-主体生命周期不能为空",false);
      omsPlanning = mOmsPlanningService.queryPlanDataDetail(queryPlanDataDetailReq);



if((omsPlanning != null )) {
        //if(3-5-01查规划资料详情.出参 值不等于空 )  13498

QueryTopMidBasicBatchOperateJudgeDetailComRespDto queryTopMidBasicBatchOperateJudgeDetailComRespDto = null;
    QueryTopMidBasicBatchOperateJudgeDetailComReqDto queryTopMidBasicBatchOperateJudgeDetailComReqDto=new QueryTopMidBasicBatchOperateJudgeDetailComReqDto();
  queryTopMidBasicBatchOperateJudgeDetailComReqDto.setBatchOperateScene("TOP");//sourceId:222632_1_13499
queryTopMidBasicBatchOperateJudgeDetailComReqDto.setEvaTempBatchMgtOperationType("MIXTURE_OPERATION");//sourceId:307143_1_13499
if(reqDto!=null){
      queryTopMidBasicBatchOperateJudgeDetailComReqDto.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:222633_1_13499
queryTopMidBasicBatchOperateJudgeDetailComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:329900_1_13499
    }

    /*D3查询高中基层批次操作可用判断(公共)[3979]   */
    Assert.isNull(queryTopMidBasicBatchOperateJudgeDetailComReqDto.getBatchOperateScene(),"D3判断删除规划资料操作可用(公共)-D3查询高中基层批次操作可用判断(公共)-高/中/基层操作场景不能为空",false);
Assert.isNull(queryTopMidBasicBatchOperateJudgeDetailComReqDto.getEvaTempBatchMgtOperationType(),"D3判断删除规划资料操作可用(公共)-D3查询高中基层批次操作可用判断(公共)-评价模板批次下管理操作类型不能为空",false);
Assert.isNull(queryTopMidBasicBatchOperateJudgeDetailComReqDto.getEntityId(),"D3判断删除规划资料操作可用(公共)-D3查询高中基层批次操作可用判断(公共)-目标ID不能为空",false);
Assert.isNull(queryTopMidBasicBatchOperateJudgeDetailComReqDto.getEvaluationTemplateId(),"D3判断删除规划资料操作可用(公共)-D3查询高中基层批次操作可用判断(公共)-冗余评价模板ID不能为空",false);
      queryTopMidBasicBatchOperateJudgeDetailComRespDto = batchService.queryTopMidBasicBatchOperateJudgeDetailCom(queryTopMidBasicBatchOperateJudgeDetailComReqDto);


      queryTopMidBasicBatchOperateJudgeDetailComRespDto_1 = queryTopMidBasicBatchOperateJudgeDetailComRespDto;
//processBranchName:正常结束 ,processBranchId:13500

      }
else{
       //else  13501

//异常结束 13502
      throw new BizException("3300330300073","对不起，该规划资料不能删除，已经不是草稿。~",false);
    }
JudgeDeletePlanDataUsableComRespDto retData = new JudgeDeletePlanDataUsableComRespDto();
  if(queryTopMidBasicBatchOperateJudgeDetailComRespDto_1!=null){
      retData.setOutputNum(queryTopMidBasicBatchOperateJudgeDetailComRespDto_1.getOutputNum());//SimpleFieldAssign//sourceId:222670_1
retData.setBatchCode(queryTopMidBasicBatchOperateJudgeDetailComRespDto_1.getBatchCode());//SimpleFieldAssign//sourceId:222671_1
retData.setBatchCurrentStatus(queryTopMidBasicBatchOperateJudgeDetailComRespDto_1.getBatchCurrentStatus());//SimpleFieldAssign//sourceId:222672_1
    }




return retData;
  }
/**
   * D3-5删除规划资料[2904]
   * gen by moon at 6/9/2024, 1:06:30 AM
   */
  @Trace(operationName = "D3-5删除规划资料")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public DeletePlanDataRespDto deletePlanData(DeletePlanDataReqDto reqDto){


      //步骤0: D3判断删除规划资料操作可用(公共) - judgeDeletePlanDataUsableCom
     JudgeDeletePlanDataUsableComRespDto judgeDeletePlanDataUsableComRespDto = null;
    JudgeDeletePlanDataUsableComReqDto judgeDeletePlanDataUsableComReqDto=new JudgeDeletePlanDataUsableComReqDto();
  if(reqDto!=null){
      judgeDeletePlanDataUsableComReqDto.setPlanningId(reqDto.getPlanningId());//SimpleFieldAssign//sourceId:222675_1
judgeDeletePlanDataUsableComReqDto.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:222676_1
judgeDeletePlanDataUsableComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:329914_1
    }

    /*D3判断删除规划资料操作可用(公共)[4093]   */
    Assert.isNull(judgeDeletePlanDataUsableComReqDto.getPlanningId(),"D3-5删除规划资料-D3判断删除规划资料操作可用(公共)-规划资料ID不能为空",false);
Assert.isNull(judgeDeletePlanDataUsableComReqDto.getEntityId(),"D3-5删除规划资料-D3判断删除规划资料操作可用(公共)-目标ID不能为空",false);
Assert.isNull(judgeDeletePlanDataUsableComReqDto.getEvaluationTemplateId(),"D3-5删除规划资料-D3判断删除规划资料操作可用(公共)-冗余评价模板ID不能为空",false);
      judgeDeletePlanDataUsableComRespDto = judgeDeletePlanDataUsableCom(judgeDeletePlanDataUsableComReqDto)/*vcase invoke 同服务,同domain*/;
      Assert.isTrue(judgeDeletePlanDataUsableComRespDto== null||  judgeDeletePlanDataUsableComRespDto.getOutputNum() ==null,"找不到数据，系统异常",false);



//步骤1: 3-5-01删除规划资料 - deletePlanData
     boolean bOOLEAN ;
    String string=new String();
  if(reqDto!=null){
      string=reqDto.getPlanningId();;//SimpleFieldAssign//sourceId:222610_1
    }

    /*3-5-01删除规划资料[4092]   */
    Assert.isNull(string,"D3-5删除规划资料-3-5-01删除规划资料-规划资料ID不能为空",false);
      bOOLEAN = mOmsPlanningService.deletePlanData(string)/*vcase invoke 本地 method 方法调用;*/;




//步骤2: D2批量删文档关系或文档(公共) - batchDeleteDocRelOrDocCom
     BatchDeleteDocRelOrDocComRespDto batchDeleteDocRelOrDocComRespDto = null;
    BatchDeleteDocRelOrDocComReqDto batchDeleteDocRelOrDocComReqDto=new BatchDeleteDocRelOrDocComReqDto();
  batchDeleteDocRelOrDocComReqDto.setDocUseSceneCode("PLANNING");//sourceId:1857723_1
batchDeleteDocRelOrDocComReqDto.setDocUseType("PLAN_DATA");//sourceId:1857724_1
batchDeleteDocRelOrDocComReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1857730_1
if(reqDto!=null){
      batchDeleteDocRelOrDocComReqDto.setOwnEntityId(reqDto.getPlanningId());//SimpleFieldAssign//sourceId:1857727_1
batchDeleteDocRelOrDocComReqDto.setThemeContentId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1857729_1
    }

    /*D2批量删文档关系或文档(公共)[9755]   */
    Assert.isNull(batchDeleteDocRelOrDocComReqDto.getDocUseSceneCode(),"D3-5删除规划资料-D2批量删文档关系或文档(公共)-文档应用业务场景不能为空",false);
Assert.isNull(batchDeleteDocRelOrDocComReqDto.getDocUseType(),"D3-5删除规划资料-D2批量删文档关系或文档(公共)-文档用途类型不能为空",false);
Assert.isNull(batchDeleteDocRelOrDocComReqDto.getOwnEntityId(),"D3-5删除规划资料-D2批量删文档关系或文档(公共)-归属内容表主键ID不能为空",false);
Assert.isNull(batchDeleteDocRelOrDocComReqDto.getThemeContentId(),"D3-5删除规划资料-D2批量删文档关系或文档(公共)-主题内容ID不能为空",false);
Assert.isNull(batchDeleteDocRelOrDocComReqDto.getSpaceId(),"D3-5删除规划资料-D2批量删文档关系或文档(公共)-创建于空间ID不能为空",false);
      batchDeleteDocRelOrDocComRespDto = fwCompUnstructuredDataClient.batchDeleteDocRelOrDocCom(batchDeleteDocRelOrDocComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;




//步骤3: D3-13批量删业务应用变更字段(公共) - batchDeleteBizAppChangeColCom
     BatchDeleteBizAppChangeColComRespDto batchDeleteBizAppChangeColComRespDto = null;
    BatchDeleteBizAppChangeColComReqDto batchDeleteBizAppChangeColComReqDto=new BatchDeleteBizAppChangeColComReqDto();
  batchDeleteBizAppChangeColComReqDto.setTableTypeCode("OMS_PLANNING");//sourceId:222684_1
if(reqDto!=null){
      batchDeleteBizAppChangeColComReqDto.setEntityId(reqDto.getPlanningId());//SimpleFieldAssign//sourceId:222685_1
    }

    /*D3-13批量删业务应用变更字段(公共)[3886]   */
    Assert.isNull(batchDeleteBizAppChangeColComReqDto.getTableTypeCode(),"D3-5删除规划资料-D3-13批量删业务应用变更字段(公共)-内容表类型编码不能为空",false);
Assert.isNull(batchDeleteBizAppChangeColComReqDto.getEntityId(),"D3-5删除规划资料-D3-13批量删业务应用变更字段(公共)-内容表主键ID不能为空",false);
      batchDeleteBizAppChangeColComRespDto = changeColumnService.batchDeleteBizAppChangeColCom(batchDeleteBizAppChangeColComReqDto)/*vcase invoke isSameApp*/;




DeletePlanDataRespDto retData = new DeletePlanDataRespDto();





return retData;
  }
/**
   * D3-5新增所有类型规划资料[4082]
   * gen by moon at 7/18/2024, 6:34:11 PM
   */
  @Trace(operationName = "D3-5新增所有类型规划资料")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public AddAllTypePlanDataRespDto addAllTypePlanData(AddAllTypePlanDataReqDto reqDto){


      String string_1 =null;
String string_3 =null;
//步骤0: M3执行获取出入参业务字段（特殊方法） - implementAccessParameterBizField
     //ModelCode: receptionService
        ImplementAccessParameterBizFieldRespDto receptionServiceRes = null;
    ImplementAccessParameterBizFieldReqDto receptionServiceReq=new ImplementAccessParameterBizFieldReqDto();
  if(reqDto!= null&&  reqDto.getBusAppDocRelaList() !=null&& !CollectionUtil.isEmpty(reqDto.getBusAppDocRelaList())){
      receptionServiceReq.setBusAppDocRelaList(reqDto.getBusAppDocRelaList().stream().map(item -> BeanUtil.toBean(item, BusAppDocRelaDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:748262_1
    }

    /*M3接收文档关系字段[5797]  用于特殊方法接收上游入参。 */

      receptionServiceRes = nbPlanData.implementAccessParameterBizField(receptionServiceReq);




//步骤1: D3查询高中基层批次操作可用判断(公共) - queryTopMidBasicBatchOperateJudgeDetailCom
     QueryTopMidBasicBatchOperateJudgeDetailComRespDto queryTopMidBasicBatchOperateJudgeDetailComRespDto = null;
    QueryTopMidBasicBatchOperateJudgeDetailComReqDto queryTopMidBasicBatchOperateJudgeDetailComReqDto=new QueryTopMidBasicBatchOperateJudgeDetailComReqDto();
  queryTopMidBasicBatchOperateJudgeDetailComReqDto.setBatchOperateScene("TOP");//sourceId:221417_1
queryTopMidBasicBatchOperateJudgeDetailComReqDto.setEvaTempBatchMgtOperationType("MIXTURE_OPERATION");//sourceId:307142_1
if(reqDto!=null){
      queryTopMidBasicBatchOperateJudgeDetailComReqDto.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:221418_1
queryTopMidBasicBatchOperateJudgeDetailComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:329919_1
    }

    /*D3查询高中基层批次操作可用判断(公共)[3979]   */
    Assert.isNull(queryTopMidBasicBatchOperateJudgeDetailComReqDto.getBatchOperateScene(),"D3-5新增所有类型规划资料-D3查询高中基层批次操作可用判断(公共)-高/中/基层操作场景不能为空",false);
Assert.isNull(queryTopMidBasicBatchOperateJudgeDetailComReqDto.getEvaTempBatchMgtOperationType(),"D3-5新增所有类型规划资料-D3查询高中基层批次操作可用判断(公共)-评价模板批次下管理操作类型不能为空",false);
Assert.isNull(queryTopMidBasicBatchOperateJudgeDetailComReqDto.getEntityId(),"D3-5新增所有类型规划资料-D3查询高中基层批次操作可用判断(公共)-目标ID不能为空",false);
Assert.isNull(queryTopMidBasicBatchOperateJudgeDetailComReqDto.getEvaluationTemplateId(),"D3-5新增所有类型规划资料-D3查询高中基层批次操作可用判断(公共)-冗余评价模板ID不能为空",false);
      queryTopMidBasicBatchOperateJudgeDetailComRespDto = batchService.queryTopMidBasicBatchOperateJudgeDetailCom(queryTopMidBasicBatchOperateJudgeDetailComReqDto)/*vcase invoke isSameApp*/;
      Assert.isTrue(queryTopMidBasicBatchOperateJudgeDetailComRespDto== null||  queryTopMidBasicBatchOperateJudgeDetailComRespDto.getOutputNum() ==null,"找不到数据，系统异常",false);



//步骤2: D2-3查询分组匹配模板答案公共)(跨服务） - querySchemeClassMatchEvaTempAnswerDetailCom
     QuerySchemeClassMatchEvaTempAnswerDetailComRespDto querySchemeClassMatchEvaTempAnswerDetailComRespDto = null;
    QuerySchemeClassMatchEvaTempAnswerDetailComReqDto querySchemeClassMatchEvaTempAnswerDetailComReqDto=new QuerySchemeClassMatchEvaTempAnswerDetailComReqDto();
  querySchemeClassMatchEvaTempAnswerDetailComReqDto.setConfItemClassCode("TEMP_BASIC_SET_CLASS");//CUSTOM_CONVENTION//sourceId:221336_1
querySchemeClassMatchEvaTempAnswerDetailComReqDto.setIsSingleResult("TRUE");//sourceId:221382_1
querySchemeClassMatchEvaTempAnswerDetailComReqDto.setIsPlatData("FALSE");//sourceId:427538_1
if(reqDto!=null){
      querySchemeClassMatchEvaTempAnswerDetailComReqDto.setResultAspObjId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:221338_1
    }

    /*D2-3查询分组匹配模板答案公共)(跨服务）[3069]   */
    Assert.isNull(querySchemeClassMatchEvaTempAnswerDetailComReqDto.getResultAspObjId(),"D3-5新增所有类型规划资料-D2-3查询分组匹配模板答案公共)(跨服务）-评价模板ID不能为空",false);
Assert.isNull(querySchemeClassMatchEvaTempAnswerDetailComReqDto.getConfItemClassCode(),"D3-5新增所有类型规划资料-D2-3查询分组匹配模板答案公共)(跨服务）-分组标识不能为空",false);
Assert.isNull(querySchemeClassMatchEvaTempAnswerDetailComReqDto.getIsSingleResult(),"D3-5新增所有类型规划资料-D2-3查询分组匹配模板答案公共)(跨服务）-是否单一答案不能为空",false);
Assert.isNull(querySchemeClassMatchEvaTempAnswerDetailComReqDto.getIsPlatData(),"D3-5新增所有类型规划资料-D2-3查询分组匹配模板答案公共)(跨服务）-是否标准答案不能为空",false);
      querySchemeClassMatchEvaTempAnswerDetailComRespDto = fwCompConfSchemeClient.querySchemeClassMatchEvaTempAnswerDetailCom(querySchemeClassMatchEvaTempAnswerDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;




//步骤3: D3-5判断是否总规划(公共) - judgeIsMainplanCom
     JudgeIsMainplanComRespDto judgeIsMainplanComRespDto = null;
    JudgeIsMainplanComReqDto judgeIsMainplanComReqDto=new JudgeIsMainplanComReqDto();
  if(reqDto!=null){
      judgeIsMainplanComReqDto.setPlanSchemeClass(reqDto.getPlanSchemeClass());//SimpleFieldAssign//sourceId:322175_1
    }

    /*D3-5判断是否总规划(公共)[4540]   */
    Assert.isNull(judgeIsMainplanComReqDto.getPlanSchemeClass(),"D3-5新增所有类型规划资料-D3-5判断是否总规划(公共)-规划方案类别不能为空",false);
      judgeIsMainplanComRespDto = judgeIsMainplanCom(judgeIsMainplanComReqDto)/*vcase invoke 同服务,同domain*/;




//步骤4: 3-5-01新增规划资料 - addPlanData
     String string = null;
    if(querySchemeClassMatchEvaTempAnswerDetailComRespDto !=null){
          OmsPlanning omsPlanning=new OmsPlanning();
  if(reqDto!=null){
      omsPlanning.setTargetCategoryId(reqDto.getTargetCategoryId());//SimpleFieldAssign//sourceId:221394_1
omsPlanning.setEvaObjTargetCycleId(reqDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:221385_1
omsPlanning.setPlanSchemeClass(reqDto.getPlanSchemeClass());//SimpleFieldAssign//sourceId:221388_1
omsPlanning.setPlanningNumber(reqDto.getPlanningNumber());//SimpleFieldAssign//sourceId:221395_1
omsPlanning.setPlanningName(reqDto.getPlanningName());//SimpleFieldAssign//sourceId:221389_1
omsPlanning.setPlanningShortName(reqDto.getPlanningShortName());//SimpleFieldAssign//sourceId:221390_1
omsPlanning.setDeptId(reqDto.getDeptId());//SimpleFieldAssign//sourceId:221391_1
omsPlanning.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:221396_1
    }
if(querySchemeClassMatchEvaTempAnswerDetailComRespDto!=null){
      omsPlanning.setPlanningType(querySchemeClassMatchEvaTempAnswerDetailComRespDto.getPlanningType());//SimpleFieldAssign//sourceId:221386_1
omsPlanning.setOkrType(querySchemeClassMatchEvaTempAnswerDetailComRespDto.getOkrType());//SimpleFieldAssign//sourceId:221387_1
    }
if(judgeIsMainplanComRespDto!=null){
      omsPlanning.setIsMainplan(judgeIsMainplanComRespDto.getIsMainplan());//SimpleFieldAssign//sourceId:221397_1
    }
if(queryTopMidBasicBatchOperateJudgeDetailComRespDto!=null){
      omsPlanning.setBatchCode(queryTopMidBasicBatchOperateJudgeDetailComRespDto.getBatchCode());//SimpleFieldAssign//sourceId:221392_1
    }

    /*3-5-01新增规划资料[2346]   */
    Assert.isNull(omsPlanning.getEvaObjTargetCycleId(),"D3-5新增所有类型规划资料-3-5-01新增规划资料-被评对象目标周期ID不能为空",false);
Assert.isNull(omsPlanning.getPlanningType(),"D3-5新增所有类型规划资料-3-5-01新增规划资料-规划类型不能为空",false);
Assert.isNull(omsPlanning.getOkrType(),"D3-5新增所有类型规划资料-3-5-01新增规划资料-OKR类型不能为空",false);
Assert.isNull(omsPlanning.getPlanSchemeClass(),"D3-5新增所有类型规划资料-3-5-01新增规划资料-规划方案类别不能为空",false);
Assert.isNull(omsPlanning.getPlanningNumber(),"D3-5新增所有类型规划资料-3-5-01新增规划资料-规划编号不能为空",false);
Assert.isNull(omsPlanning.getPlanningName(),"D3-5新增所有类型规划资料-3-5-01新增规划资料-规划名称不能为空",false);
Assert.isNull(omsPlanning.getPlanningShortName(),"D3-5新增所有类型规划资料-3-5-01新增规划资料-规划简称不能为空",false);
Assert.isNull(omsPlanning.getDeptId(),"D3-5新增所有类型规划资料-3-5-01新增规划资料-牵头部门ID不能为空",false);
Assert.isNull(omsPlanning.getIsMainplan(),"D3-5新增所有类型规划资料-3-5-01新增规划资料-是否总规划不能为空",false);
Assert.isNull(omsPlanning.getEvaluationTemplateId(),"D3-5新增所有类型规划资料-3-5-01新增规划资料-冗余评价模板ID不能为空",false);
Assert.isNull(omsPlanning.getBatchCode(),"D3-5新增所有类型规划资料-3-5-01新增规划资料-批次标识不能为空",false);
      string = mOmsPlanningService.addPlanData(omsPlanning)/*vcase invoke 本地 method 方法调用;*/;


      string_1 = string;
           }

//步骤5: 3-5-2新增超文本内容 - addHypertextContent
     String string_2 = null;
    if(string !=null){
          OmsBizAppHypertextContent omsBizAppHypertextContent=new OmsBizAppHypertextContent();
  omsBizAppHypertextContent.setReleationContTypeCode("PLANNING_DATA");//sourceId:221398_1
omsBizAppHypertextContent.setHypertextType("PLANNING_DATA");//sourceId:429431_1
if(string!=null){
      omsBizAppHypertextContent.setReleationContId(string);//SimpleFieldAssign//sourceId:221399_1
    }
if(reqDto!=null){
      omsBizAppHypertextContent.setHypertextContent(reqDto.getHypertextContent());//SimpleFieldAssign//sourceId:221400_1
    }

    /*3-5-2新增超文本内容[3136]   */
    Assert.isNull(omsBizAppHypertextContent.getReleationContId(),"D3-5新增所有类型规划资料-3-5-2新增超文本内容-超文本内容关联主键ID不能为空",false);
Assert.isNull(omsBizAppHypertextContent.getHypertextContent(),"D3-5新增所有类型规划资料-3-5-2新增超文本内容-超文本内容不能为空",false);
Assert.isNull(omsBizAppHypertextContent.getReleationContTypeCode(),"D3-5新增所有类型规划资料-3-5-2新增超文本内容-超文本内容关联类型编码不能为空",false);
Assert.isNull(omsBizAppHypertextContent.getHypertextType(),"D3-5新增所有类型规划资料-3-5-2新增超文本内容-超文本内容类型不能为空",false);
      string_2 = mOmsBizAppHypertextContentService.addHypertextContent(omsBizAppHypertextContent)/*vcase invoke 本地 method 方法调用;*/;


      string_3 = string_2;
           }

//步骤6: D3执行准备规划相关资料文档关系(公共) - implementPerpareDataDocRelOrDocCom
     ImplementPerpareDataDocRelOrDocComRespDto implementPerpareDataDocRelOrDocComRespDto = null;
    ImplementPerpareDataDocRelOrDocComReqDto implementPerpareDataDocRelOrDocComReqDto=new ImplementPerpareDataDocRelOrDocComReqDto();
  if(reqDto!=null){
      implementPerpareDataDocRelOrDocComReqDto.setEvaObjTargetCycleId(reqDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1859347_1
implementPerpareDataDocRelOrDocComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1859348_1
    }

    /*D3执行准备规划相关资料文档关系(公共)[9775]   */
    Assert.isNull(implementPerpareDataDocRelOrDocComReqDto.getEvaObjTargetCycleId(),"D3-5新增所有类型规划资料-D3执行准备规划相关资料文档关系(公共)-被评对象目标周期ID不能为空",false);
Assert.isNull(implementPerpareDataDocRelOrDocComReqDto.getEvaluationTemplateId(),"D3-5新增所有类型规划资料-D3执行准备规划相关资料文档关系(公共)-冗余评价模板ID不能为空",false);
      implementPerpareDataDocRelOrDocComRespDto = unstructuredDataService.implementPerpareDataDocRelOrDocCom(implementPerpareDataDocRelOrDocComReqDto)/*vcase invoke isSameApp*/;




//步骤7: D2执行分离新增或删除文档列表(公共) - implementSeparateAddOrDeleteDocListCom
     ImplementSeparateAddOrDeleteDocListComRespDto implementSeparateAddOrDeleteDocListComRespDto = null;
    if(string !=null){
          ImplementSeparateAddOrDeleteDocListComReqDto implementSeparateAddOrDeleteDocListComReqDto=new ImplementSeparateAddOrDeleteDocListComReqDto();
  implementSeparateAddOrDeleteDocListComReqDto.setIsCleanPersonalInvalidDocument("TRUE");//sourceId:1935957_1
  implementSeparateAddOrDeleteDocListComReqDto.setDocUseSceneCode("PLANNING");//sourceId:1855528_1
implementSeparateAddOrDeleteDocListComReqDto.setDocUseType("PLAN_DATA");//sourceId:1855529_1
implementSeparateAddOrDeleteDocListComReqDto.setIsResult("FALSE");//sourceId:1859368_1
implementSeparateAddOrDeleteDocListComReqDto.setOwnTableTypeCode("OMS_PLANNING");//sourceId:1855531_1
implementSeparateAddOrDeleteDocListComReqDto.setUserId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecUserId());//CURRENT_USERID//sourceId:1855537_1
implementSeparateAddOrDeleteDocListComReqDto.setOwnParentContentTypeCode("OMS_EVALUATION_OBJECT_TARGET_CYCLE");//sourceId:1855532_1
implementSeparateAddOrDeleteDocListComReqDto.setThemeContentTypeCode("OMS_EVALUATION_TEMPLATE");//sourceId:1855535_1
implementSeparateAddOrDeleteDocListComReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1855526_1
if(reqDto!= null&&  reqDto.getBusAppDocRelaList() !=null&& !CollectionUtil.isEmpty(reqDto.getBusAppDocRelaList())){
      implementSeparateAddOrDeleteDocListComReqDto.setDocumentList(reqDto.getBusAppDocRelaList().stream().map(item -> BeanUtil.toBean(item, com.wicket.okrcomponent.integration.dto.DocumentDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1855527_1
    }
if(string!=null){
      implementSeparateAddOrDeleteDocListComReqDto.setOwnEntityId(string);//SimpleFieldAssign//sourceId:1855525_1
    }
if(implementPerpareDataDocRelOrDocComRespDto!=null){
      implementSeparateAddOrDeleteDocListComReqDto.setOwnWorkCycleId(implementPerpareDataDocRelOrDocComRespDto.getCycleId());//SimpleFieldAssign//sourceId:1855530_1
implementSeparateAddOrDeleteDocListComReqDto.setOwnParentContentCode(implementPerpareDataDocRelOrDocComRespDto.getEvaObjTargetCycleCode());//SimpleFieldAssign//sourceId:1855533_1
    }
if(reqDto!=null){
      implementSeparateAddOrDeleteDocListComReqDto.setOwnParentContentId(reqDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1855534_1
      implementSeparateAddOrDeleteDocListComReqDto.setThemeContentId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1855536_1
    }

    /*D2执行分离新增或删除文档列表(公共)[8783]   */
    Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getIsCleanPersonalInvalidDocument(),"D3-5新增所有类型规划资料-D2执行分离新增或删除文档列表(公共)-是否清理个人无效文档不能为空",false);
    Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getDocUseSceneCode(),"D3-5新增所有类型规划资料-D2执行分离新增或删除文档列表(公共)-文档应用业务场景不能为空",false);
Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getDocUseType(),"D3-5新增所有类型规划资料-D2执行分离新增或删除文档列表(公共)-文档用途类型不能为空",false);
Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getIsResult(),"D3-5新增所有类型规划资料-D2执行分离新增或删除文档列表(公共)-冗余是否结果文档不能为空",false);
Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getOwnEntityId(),"D3-5新增所有类型规划资料-D2执行分离新增或删除文档列表(公共)-归属内容表主键ID不能为空",false);
Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getOwnTableTypeCode(),"D3-5新增所有类型规划资料-D2执行分离新增或删除文档列表(公共)-归属内容表类型编码不能为空",false);
Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getOwnWorkCycleId(),"D3-5新增所有类型规划资料-D2执行分离新增或删除文档列表(公共)-归属工作周期ID不能为空",false);
Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getUserId(),"D3-5新增所有类型规划资料-D2执行分离新增或删除文档列表(公共)-归属个人账号不能为空",false);
Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getOwnParentContentTypeCode(),"D3-5新增所有类型规划资料-D2执行分离新增或删除文档列表(公共)-归属父内容表类型编码不能为空",false);
Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getOwnParentContentCode(),"D3-5新增所有类型规划资料-D2执行分离新增或删除文档列表(公共)-归属父内容标识不能为空",false);
Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getOwnParentContentId(),"D3-5新增所有类型规划资料-D2执行分离新增或删除文档列表(公共)-归属父内容表主键ID不能为空",false);
Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getThemeContentTypeCode(),"D3-5新增所有类型规划资料-D2执行分离新增或删除文档列表(公共)-主题内容表类型编码不能为空",false);
Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getThemeContentId(),"D3-5新增所有类型规划资料-D2执行分离新增或删除文档列表(公共)-主题内容ID不能为空",false);
Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getSpaceId(),"D3-5新增所有类型规划资料-D2执行分离新增或删除文档列表(公共)-创建于空间ID不能为空",false);
      implementSeparateAddOrDeleteDocListComRespDto = fwCompUnstructuredDataClient.implementSeparateAddOrDeleteDocListCom(implementSeparateAddOrDeleteDocListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }

//步骤8: 3-2-02查评价模板详情 - queryEvaTempDetail
     OmsEvaluationTemplate omsEvaluationTemplate = null;
    QueryEvaTempDetailReq queryEvaTempDetailReq=new QueryEvaTempDetailReq();
  if(reqDto!=null){
      queryEvaTempDetailReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:313704_1
    }

    /*3-2-02查评价模板名称（用于变更字段）[2316]   */
    Assert.isNull(queryEvaTempDetailReq.getEvaluationTemplateId(),"D3-5新增所有类型规划资料-3-2-02查评价模板名称（用于变更字段）-评价模板ID不能为空",false);
      omsEvaluationTemplate = mOmsEvaluationTemplateService.queryEvaTempDetail(queryEvaTempDetailReq)/*vcase invoke 本地 method 方法调用;*/;
      Assert.isTrue(omsEvaluationTemplate== null||  omsEvaluationTemplate.getEvaluationTempName() ==null,"找不到数据，系统异常",false);



//步骤9: D3-13新增业务应用变更字段(公共) - addBizAppChangeColCom
     AddBizAppChangeColComRespDto addBizAppChangeColComRespDto = null;
    if(string !=null){
          AddBizAppChangeColComReqDto addBizAppChangeColComReqDto=new AddBizAppChangeColComReqDto();
  addBizAppChangeColComReqDto.setTableTypeCode("OMS_PLANNING");//sourceId:221429_1
addBizAppChangeColComReqDto.setEntityName("planningId");//CUSTOM_CONVENTION//sourceId:221430_1
addBizAppChangeColComReqDto.setObjectPropertyCode("planningId");//CUSTOM_CONVENTION//sourceId:221432_1
addBizAppChangeColComReqDto.setObjectPropertyName("规划");//CUSTOM_CONVENTION//sourceId:221433_1
addBizAppChangeColComReqDto.setOriColumnContent("无");//CUSTOM_CONVENTION//sourceId:221436_1
addBizAppChangeColComReqDto.setSubjectTypeCode("EVALUATION_TEMPLATE_LOG_NAV");//sourceId:221437_1
addBizAppChangeColComReqDto.setSubjectChangeType("ADD_CONSTRUCTION_TASK");//CUSTOM_CONVENTION//sourceId:221438_1
addBizAppChangeColComReqDto.setObjectTypeCode("OMS_EVALUATION_TEMPLATE");//sourceId:221439_1
if(string!=null){
      addBizAppChangeColComReqDto.setEntityId(string);//SimpleFieldAssign//sourceId:221431_1
addBizAppChangeColComReqDto.setMetaDataColumnContent(string);//SimpleFieldAssign//sourceId:221434_1
    }
if(reqDto!=null){
      addBizAppChangeColComReqDto.setColumnContent(reqDto.getPlanningShortName());//SimpleFieldAssign//sourceId:221435_1
addBizAppChangeColComReqDto.setObjectId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:221440_1
    }
if(queryTopMidBasicBatchOperateJudgeDetailComRespDto!=null){
      addBizAppChangeColComReqDto.setBatchCode(queryTopMidBasicBatchOperateJudgeDetailComRespDto.getBatchCode());//SimpleFieldAssign//sourceId:221441_1
addBizAppChangeColComReqDto.setBatchCurrentStatus(queryTopMidBasicBatchOperateJudgeDetailComRespDto.getBatchCurrentStatus());//SimpleFieldAssign//sourceId:221442_1
    }
if(omsEvaluationTemplate!=null){
      addBizAppChangeColComReqDto.setSubjectContAffiliationParentCont(omsEvaluationTemplate.getEvaluationTempName());//SimpleFieldAssign//sourceId:313703_1
    }

    /*D3-13新增业务应用变更字段(公共)[3885]   */
    Assert.isNull(addBizAppChangeColComReqDto.getTableTypeCode(),"D3-5新增所有类型规划资料-D3-13新增业务应用变更字段(公共)-内容表类型编码不能为空",false);
Assert.isNull(addBizAppChangeColComReqDto.getEntityName(),"D3-5新增所有类型规划资料-D3-13新增业务应用变更字段(公共)-内容表主键字段英文名不能为空",false);
Assert.isNull(addBizAppChangeColComReqDto.getEntityId(),"D3-5新增所有类型规划资料-D3-13新增业务应用变更字段(公共)-内容表主键ID不能为空",false);
Assert.isNull(addBizAppChangeColComReqDto.getObjectPropertyCode(),"D3-5新增所有类型规划资料-D3-13新增业务应用变更字段(公共)-变更字段英文名不能为空",false);
Assert.isNull(addBizAppChangeColComReqDto.getObjectPropertyName(),"D3-5新增所有类型规划资料-D3-13新增业务应用变更字段(公共)-变更字段行为日志名称不能为空",false);
Assert.isNull(addBizAppChangeColComReqDto.getMetaDataColumnContent(),"D3-5新增所有类型规划资料-D3-13新增业务应用变更字段(公共)-变更字段原始值不能为空",false);
Assert.isNull(addBizAppChangeColComReqDto.getColumnContent(),"D3-5新增所有类型规划资料-D3-13新增业务应用变更字段(公共)-变更后字段中文内容不能为空",false);
Assert.isNull(addBizAppChangeColComReqDto.getOriColumnContent(),"D3-5新增所有类型规划资料-D3-13新增业务应用变更字段(公共)-变更前字段中文内容不能为空",false);
Assert.isNull(addBizAppChangeColComReqDto.getSubjectTypeCode(),"D3-5新增所有类型规划资料-D3-13新增业务应用变更字段(公共)-主体类型编码不能为空",false);
Assert.isNull(addBizAppChangeColComReqDto.getSubjectChangeType(),"D3-5新增所有类型规划资料-D3-13新增业务应用变更字段(公共)-主体变更日志类型不能为空",false);
Assert.isNull(addBizAppChangeColComReqDto.getObjectTypeCode(),"D3-5新增所有类型规划资料-D3-13新增业务应用变更字段(公共)-归属对象类型编码不能为空",false);
Assert.isNull(addBizAppChangeColComReqDto.getObjectId(),"D3-5新增所有类型规划资料-D3-13新增业务应用变更字段(公共)-归属对象内容ID不能为空",false);
Assert.isNull(addBizAppChangeColComReqDto.getBatchCode(),"D3-5新增所有类型规划资料-D3-13新增业务应用变更字段(公共)-批次标识不能为空",false);
Assert.isNull(addBizAppChangeColComReqDto.getBatchCurrentStatus(),"D3-5新增所有类型规划资料-D3-13新增业务应用变更字段(公共)-批次现状不能为空",false);
Assert.isNull(addBizAppChangeColComReqDto.getSubjectContAffiliationParentCont(),"D3-5新增所有类型规划资料-D3-13新增业务应用变更字段(公共)-主体内容归属父对象不能为空",false);
      addBizAppChangeColComRespDto = changeColumnService.addBizAppChangeColCom(addBizAppChangeColComReqDto)/*vcase invoke isSameApp*/;



           }

AddAllTypePlanDataRespDto retData = new AddAllTypePlanDataRespDto();
  if(string_1!=null){
      retData.setPlanningId(string_1);//SimpleFieldAssign//sourceId:222324_1
    }
if(string_3!=null){
      retData.setHypertextContentId(string_3);//SimpleFieldAssign//sourceId:222325_1
    }




return retData;
  }
/**
   * D3更新当前规划资料[4095]
   * gen by moon at 7/18/2024, 6:34:14 PM
   */
  @Trace(operationName = "D3更新当前规划资料")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public RefreshCurrentPlanDataRespDto refreshCurrentPlanData(RefreshCurrentPlanDataReqDto reqDto){


      String string_1 =null;
//步骤0: D3判断更新规划资料操作可用(公共) - judgeUpdatePlanDataUsableCom
     JudgeUpdatePlanDataUsableComRespDto judgeUpdatePlanDataUsableComRespDto = null;
    JudgeUpdatePlanDataUsableComReqDto judgeUpdatePlanDataUsableComReqDto=new JudgeUpdatePlanDataUsableComReqDto();
  if(reqDto!=null){
      judgeUpdatePlanDataUsableComReqDto.setPlanningId(reqDto.getPlanningId());//SimpleFieldAssign//sourceId:222920_1
judgeUpdatePlanDataUsableComReqDto.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:222921_1
judgeUpdatePlanDataUsableComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:329866_1
    }

    /*D3判断更新规划资料操作可用(公共)[4096]   */
    Assert.isNull(judgeUpdatePlanDataUsableComReqDto.getPlanningId(),"D3更新当前规划资料-D3判断更新规划资料操作可用(公共)-规划资料ID不能为空",false);
Assert.isNull(judgeUpdatePlanDataUsableComReqDto.getEntityId(),"D3更新当前规划资料-D3判断更新规划资料操作可用(公共)-目标ID不能为空",false);
Assert.isNull(judgeUpdatePlanDataUsableComReqDto.getEvaluationTemplateId(),"D3更新当前规划资料-D3判断更新规划资料操作可用(公共)-冗余评价模板ID不能为空",false);
      judgeUpdatePlanDataUsableComRespDto = judgeUpdatePlanDataUsableCom(judgeUpdatePlanDataUsableComReqDto)/*vcase invoke 同服务,同domain*/;
      Assert.isTrue(judgeUpdatePlanDataUsableComRespDto== null||  judgeUpdatePlanDataUsableComRespDto.getOutputNum() ==null,"找不到数据，系统异常",false);



//步骤1: 3-5-01查规划资料详情 - queryPlanDataDetail
     OmsPlanning omsPlanning = null;
    QueryPlanDataDetailReq queryPlanDataDetailReq=new QueryPlanDataDetailReq();
  queryPlanDataDetailReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:222756_1
if(reqDto!=null){
      queryPlanDataDetailReq.setPlanningId(reqDto.getPlanningId());//SimpleFieldAssign//sourceId:222749_1
    }

    /*3-5-01查存档规划资料（用于克隆新的用）[2515]   */
    Assert.isNull(queryPlanDataDetailReq.getPlanningId(),"D3更新当前规划资料-3-5-01查存档规划资料（用于克隆新的用）-规划资料ID不能为空",false);
Assert.isNull(queryPlanDataDetailReq.getSubjectLifeCycle(),"D3更新当前规划资料-3-5-01查存档规划资料（用于克隆新的用）-主体生命周期不能为空",false);
      omsPlanning = mOmsPlanningService.queryPlanDataDetail(queryPlanDataDetailReq)/*vcase invoke 本地 method 方法调用;*/;




//步骤2: 3-5-01新增规划资料 - addPlanData
     String string = null;
    if(omsPlanning !=null){
          OmsPlanning omsPlanning_2=new OmsPlanning();
  if(omsPlanning!=null){
      omsPlanning_2.setTargetCategoryId(omsPlanning.getTargetCategoryId());//SimpleFieldAssign//sourceId:222780_1
omsPlanning_2.setEvaObjTargetCycleId(omsPlanning.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:222771_1
omsPlanning_2.setPlanningType(omsPlanning.getPlanningType());//SimpleFieldAssign//sourceId:222772_1
omsPlanning_2.setOkrType(omsPlanning.getOkrType());//SimpleFieldAssign//sourceId:222773_1
omsPlanning_2.setPlanSchemeClass(omsPlanning.getPlanSchemeClass());//SimpleFieldAssign//sourceId:222774_1
omsPlanning_2.setPlanningNumber(omsPlanning.getPlanningNumber());//SimpleFieldAssign//sourceId:222781_1
omsPlanning_2.setPlanningName(omsPlanning.getPlanningName());//SimpleFieldAssign//sourceId:222775_1
omsPlanning_2.setPlanningShortName(omsPlanning.getPlanningShortName());//SimpleFieldAssign//sourceId:222776_1
omsPlanning_2.setDeptId(omsPlanning.getDeptId());//SimpleFieldAssign//sourceId:222777_1
omsPlanning_2.setIsMainplan(omsPlanning.getIsMainplan());//SimpleFieldAssign//sourceId:222783_1
omsPlanning_2.setEvaluationTemplateId(omsPlanning.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:222782_1
    }
if(judgeUpdatePlanDataUsableComRespDto!=null){
      omsPlanning_2.setBatchCode(judgeUpdatePlanDataUsableComRespDto.getBatchCode());//SimpleFieldAssign//sourceId:222778_1
    }

    /*3-5-01新增规划资料（克隆的）[2346]   */
    Assert.isNull(omsPlanning_2.getEvaObjTargetCycleId(),"D3更新当前规划资料-3-5-01新增规划资料（克隆的）-被评对象目标周期ID不能为空",false);
Assert.isNull(omsPlanning_2.getPlanningType(),"D3更新当前规划资料-3-5-01新增规划资料（克隆的）-规划类型不能为空",false);
Assert.isNull(omsPlanning_2.getOkrType(),"D3更新当前规划资料-3-5-01新增规划资料（克隆的）-OKR类型不能为空",false);
Assert.isNull(omsPlanning_2.getPlanSchemeClass(),"D3更新当前规划资料-3-5-01新增规划资料（克隆的）-规划方案类别不能为空",false);
Assert.isNull(omsPlanning_2.getPlanningName(),"D3更新当前规划资料-3-5-01新增规划资料（克隆的）-规划名称不能为空",false);
Assert.isNull(omsPlanning_2.getPlanningShortName(),"D3更新当前规划资料-3-5-01新增规划资料（克隆的）-规划简称不能为空",false);
Assert.isNull(omsPlanning_2.getIsMainplan(),"D3更新当前规划资料-3-5-01新增规划资料（克隆的）-是否总规划不能为空",false);
Assert.isNull(omsPlanning_2.getEvaluationTemplateId(),"D3更新当前规划资料-3-5-01新增规划资料（克隆的）-冗余评价模板ID不能为空",false);
Assert.isNull(omsPlanning_2.getBatchCode(),"D3更新当前规划资料-3-5-01新增规划资料（克隆的）-批次标识不能为空",false);
      string = mOmsPlanningService.addPlanData(omsPlanning_2)/*vcase invoke 本地 method 方法调用;*/;


      string_1 = string;
           }

//步骤3: 3-3-09查被评对象目标周期详情 - queryEvaObjTargetCycleDetail
     OmsEvaluationObjectTargetCycle omsEvaluationObjectTargetCycle = null;
    if(omsPlanning !=null){
          QueryEvaObjTargetCycleDetailReq queryEvaObjTargetCycleDetailReq=new QueryEvaObjTargetCycleDetailReq();
if(omsPlanning!=null){
      queryEvaObjTargetCycleDetailReq.setEvaObjTargetCycleId(omsPlanning.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1854957_1
    }
if(reqDto!=null){
      queryEvaObjTargetCycleDetailReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1854958_1
    }

    /*3-3-09查被评对象目标周期详情[2313]   */
    Assert.isNull(queryEvaObjTargetCycleDetailReq.getEvaObjTargetCycleId(),"D3更新当前规划资料-3-3-09查被评对象目标周期详情-被评对象目标周期ID不能为空",false);
Assert.isNull(queryEvaObjTargetCycleDetailReq.getEvaluationTemplateId(),"D3更新当前规划资料-3-3-09查被评对象目标周期详情-冗余评价模板ID不能为空",false);
      omsEvaluationObjectTargetCycle = mOmsEvaluationObjectTargetCycleService.queryEvaObjTargetCycleDetail(queryEvaObjTargetCycleDetailReq)/*vcase invoke 本地 method 方法调用;*/;



           }

//步骤4: D2查询文档关系列表(公共) - queryUnstructuredRelationshipListCom
     QueryUnstructuredRelationshipListComRespDto queryUnstructuredRelationshipListComRespDto = null;
    QueryUnstructuredRelationshipListComReqDto queryUnstructuredRelationshipListComReqDto=new QueryUnstructuredRelationshipListComReqDto();
  queryUnstructuredRelationshipListComReqDto.setDocUseSceneCode("PLANNING");//sourceId:1854853_1
queryUnstructuredRelationshipListComReqDto.setDocUseType("PLAN_DATA");//sourceId:1854854_1
queryUnstructuredRelationshipListComReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1854860_1
if(reqDto!=null){
      queryUnstructuredRelationshipListComReqDto.setOwnEntityId(reqDto.getPlanningId());//SimpleFieldAssign//sourceId:1854857_1
queryUnstructuredRelationshipListComReqDto.setThemeContentId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1854859_1
           }

    /*D2查询文档关系列表(公共)[9270]   */
    Assert.isNull(queryUnstructuredRelationshipListComReqDto.getDocUseSceneCode(),"D3更新当前规划资料-D2查询文档关系列表(公共)-文档应用业务场景不能为空",false);
Assert.isNull(queryUnstructuredRelationshipListComReqDto.getDocUseType(),"D3更新当前规划资料-D2查询文档关系列表(公共)-文档用途类型不能为空",false);
Assert.isNull(queryUnstructuredRelationshipListComReqDto.getOwnEntityId(),"D3更新当前规划资料-D2查询文档关系列表(公共)-归属内容表主键ID不能为空",false);
Assert.isNull(queryUnstructuredRelationshipListComReqDto.getThemeContentId(),"D3更新当前规划资料-D2查询文档关系列表(公共)-主题内容ID不能为空",false);
Assert.isNull(queryUnstructuredRelationshipListComReqDto.getSpaceId(),"D3更新当前规划资料-D2查询文档关系列表(公共)-创建于空间ID不能为空",false);
      queryUnstructuredRelationshipListComRespDto = fwCompUnstructuredDataClient.queryUnstructuredRelationshipListCom(queryUnstructuredRelationshipListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;




//步骤5: D2执行分离新增或删除文档列表(公共) - implementSeparateAddOrDeleteDocListCom
     ImplementSeparateAddOrDeleteDocListComRespDto implementSeparateAddOrDeleteDocListComRespDto = null;
    if(queryUnstructuredRelationshipListComRespDto !=null){
          ImplementSeparateAddOrDeleteDocListComReqDto implementSeparateAddOrDeleteDocListComReqDto=new ImplementSeparateAddOrDeleteDocListComReqDto();
  implementSeparateAddOrDeleteDocListComReqDto.setIsCleanPersonalInvalidDocument("TRUE");//sourceId:1934773_1
  implementSeparateAddOrDeleteDocListComReqDto.setDocUseSceneCode("PLANNING");//sourceId:1854841_1
implementSeparateAddOrDeleteDocListComReqDto.setDocUseType("PLAN_DATA");//sourceId:1854842_1
implementSeparateAddOrDeleteDocListComReqDto.setIsResult("FALSE");//sourceId:1859363_1
implementSeparateAddOrDeleteDocListComReqDto.setOwnTableTypeCode("OMS_PLANNING");//sourceId:1854844_1
implementSeparateAddOrDeleteDocListComReqDto.setThemeContentTypeCode("OMS_EVALUATION_TEMPLATE");//sourceId:1854848_1
implementSeparateAddOrDeleteDocListComReqDto.setUserId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecUserId());//CURRENT_USERID//sourceId:1854851_1
implementSeparateAddOrDeleteDocListComReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1854839_1
if(queryUnstructuredRelationshipListComRespDto!= null&&  queryUnstructuredRelationshipListComRespDto.getUnstructuredRelationshipList() !=null&& !CollectionUtil.isEmpty(queryUnstructuredRelationshipListComRespDto.getUnstructuredRelationshipList())){
      implementSeparateAddOrDeleteDocListComReqDto.setDocumentList(queryUnstructuredRelationshipListComRespDto.getUnstructuredRelationshipList().stream().map(item -> {
        com.wicket.okrcomponent.integration.dto.DocumentDto elm =BeanUtil.toBean(item, com.wicket.okrcomponent.integration.dto.DocumentDto.class);
        elm.setRelationshipType("INDIRECT_RELATIONSHIP");

        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1854840_1
    }
if(string!=null){
      implementSeparateAddOrDeleteDocListComReqDto.setOwnEntityId(string);//SimpleFieldAssign//sourceId:1854838_1
    }
if(omsEvaluationObjectTargetCycle!=null){
      implementSeparateAddOrDeleteDocListComReqDto.setOwnWorkCycleId(omsEvaluationObjectTargetCycle.getCycleId());//SimpleFieldAssign//sourceId:1854843_1
implementSeparateAddOrDeleteDocListComReqDto.setOwnParentContentCode(omsEvaluationObjectTargetCycle.getEvaObjTargetCycleCode());//SimpleFieldAssign//sourceId:1854846_1
    }
if(omsPlanning!=null){
      implementSeparateAddOrDeleteDocListComReqDto.setOwnParentContentId(omsPlanning.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1854847_1
    }
if(reqDto!=null){
      implementSeparateAddOrDeleteDocListComReqDto.setThemeContentId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1854849_1
    }

    /*D2执行批量增文档及文档关系(克隆的)[8783]   */
    Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getIsCleanPersonalInvalidDocument(),"D3更新当前规划资料-D2执行批量增文档及文档关系(克隆的)-是否清理个人无效文档不能为空",false);
    Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getDocUseSceneCode(),"D3更新当前规划资料-D2执行批量增文档及文档关系(克隆的)-文档应用业务场景不能为空",false);
Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getDocUseType(),"D3更新当前规划资料-D2执行批量增文档及文档关系(克隆的)-文档用途类型不能为空",false);
Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getIsResult(),"D3更新当前规划资料-D2执行批量增文档及文档关系(克隆的)-冗余是否结果文档不能为空",false);
Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getOwnEntityId(),"D3更新当前规划资料-D2执行批量增文档及文档关系(克隆的)-归属内容表主键ID不能为空",false);
Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getOwnTableTypeCode(),"D3更新当前规划资料-D2执行批量增文档及文档关系(克隆的)-归属内容表类型编码不能为空",false);
Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getOwnWorkCycleId(),"D3更新当前规划资料-D2执行批量增文档及文档关系(克隆的)-归属工作周期ID不能为空",false);
Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getOwnParentContentTypeCode(),"D3更新当前规划资料-D2执行批量增文档及文档关系(克隆的)-归属父内容表类型编码不能为空",false);
Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getOwnParentContentCode(),"D3更新当前规划资料-D2执行批量增文档及文档关系(克隆的)-归属父内容标识不能为空",false);
Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getOwnParentContentId(),"D3更新当前规划资料-D2执行批量增文档及文档关系(克隆的)-归属父内容表主键ID不能为空",false);
Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getThemeContentTypeCode(),"D3更新当前规划资料-D2执行批量增文档及文档关系(克隆的)-主题内容表类型编码不能为空",false);
Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getThemeContentId(),"D3更新当前规划资料-D2执行批量增文档及文档关系(克隆的)-主题内容ID不能为空",false);
Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getUserId(),"D3更新当前规划资料-D2执行批量增文档及文档关系(克隆的)-归属个人账号不能为空",false);
Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getSpaceId(),"D3更新当前规划资料-D2执行批量增文档及文档关系(克隆的)-创建于空间ID不能为空",false);
      implementSeparateAddOrDeleteDocListComRespDto = fwCompUnstructuredDataClient.implementSeparateAddOrDeleteDocListCom(implementSeparateAddOrDeleteDocListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }

//步骤6: 3-5-01修改规划资料 - updatePlanData
     boolean bOOLEAN ;
    OmsPlanning omsPlanning_3=new OmsPlanning();
  omsPlanning_3.setIsUpdate("TRUE");//sourceId:222867_1
omsPlanning_3.setUpdateStatus("ARCHIVE");//sourceId:222868_1
omsPlanning_3.setArchivngType("TOBE_ARCHIVING");//sourceId:222869_1
if(reqDto!=null){
      omsPlanning_3.setPlanningId(reqDto.getPlanningId());//SimpleFieldAssign//sourceId:222765_1
    }

    /*3-5-01存档当前规划资料[2917]   */
    Assert.isNull(omsPlanning_3.getPlanningId(),"D3更新当前规划资料-3-5-01存档当前规划资料-规划资料ID不能为空",false);
Assert.isNull(omsPlanning_3.getIsUpdate(),"D3更新当前规划资料-3-5-01存档当前规划资料-批次下是否更新不能为空",false);
Assert.isNull(omsPlanning_3.getUpdateStatus(),"D3更新当前规划资料-3-5-01存档当前规划资料-批次下更新状态不能为空",false);
Assert.isNull(omsPlanning_3.getArchivngType(),"D3更新当前规划资料-3-5-01存档当前规划资料-存档类型不能为空",false);
      bOOLEAN = mOmsPlanningService.updatePlanData(omsPlanning_3)/*vcase invoke 本地 method 方法调用;*/;




//步骤7: 3-2-02查评价模板详情 - queryEvaTempDetail
     OmsEvaluationTemplate omsEvaluationTemplate = null;
    QueryEvaTempDetailReq queryEvaTempDetailReq=new QueryEvaTempDetailReq();
  if(reqDto!=null){
      queryEvaTempDetailReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:313760_1
    }

    /*3-2-02查评价模板名称[2316]   */

      omsEvaluationTemplate = mOmsEvaluationTemplateService.queryEvaTempDetail(queryEvaTempDetailReq)/*vcase invoke 本地 method 方法调用;*/;




//步骤8: D3-13新增业务应用变更字段(公共) - addBizAppChangeColCom
     AddBizAppChangeColComRespDto addBizAppChangeColComRespDto = null;
    if(string !=null){
          AddBizAppChangeColComReqDto addBizAppChangeColComReqDto=new AddBizAppChangeColComReqDto();
  addBizAppChangeColComReqDto.setTableTypeCode("OMS_PLANNING");//sourceId:222804_1
addBizAppChangeColComReqDto.setEntityName("planningId");//CUSTOM_CONVENTION//sourceId:222805_1
addBizAppChangeColComReqDto.setObjectPropertyCode("planningId");//CUSTOM_CONVENTION//sourceId:222807_1
addBizAppChangeColComReqDto.setObjectPropertyName("更新规划");//CUSTOM_CONVENTION//sourceId:222808_1
addBizAppChangeColComReqDto.setSubjectTypeCode("EVALUATION_TEMPLATE_LOG_NAV");//sourceId:222812_1
addBizAppChangeColComReqDto.setSubjectChangeType("CHANGE_PLAN");//CUSTOM_CONVENTION//sourceId:222813_1
addBizAppChangeColComReqDto.setObjectTypeCode("OMS_EVALUATION_TEMPLATE");//sourceId:222814_1
if(string!=null){
      addBizAppChangeColComReqDto.setEntityId(string);//SimpleFieldAssign//sourceId:222806_1
addBizAppChangeColComReqDto.setMetaDataColumnContent(string);//SimpleFieldAssign//sourceId:222809_1
    }
if(omsPlanning!=null){
      addBizAppChangeColComReqDto.setColumnContent(omsPlanning.getPlanningShortName());//SimpleFieldAssign//sourceId:222810_1
addBizAppChangeColComReqDto.setOriColumnContent(omsPlanning.getPlanningShortName());//SimpleFieldAssign//sourceId:222811_1
addBizAppChangeColComReqDto.setObjectId(omsPlanning.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:222815_1
    }
if(judgeUpdatePlanDataUsableComRespDto!=null){
      addBizAppChangeColComReqDto.setBatchCode(judgeUpdatePlanDataUsableComRespDto.getBatchCode());//SimpleFieldAssign//sourceId:222816_1
addBizAppChangeColComReqDto.setBatchCurrentStatus(judgeUpdatePlanDataUsableComRespDto.getBatchCurrentStatus());//SimpleFieldAssign//sourceId:222817_1
    }
if(omsEvaluationTemplate!=null){
      addBizAppChangeColComReqDto.setSubjectContAffiliationParentCont(omsEvaluationTemplate.getEvaluationTempShortName());//SimpleFieldAssign//sourceId:313762_1
    }

    /*D3-13新增业务应用变更字段(公共)[3885]   */
    Assert.isNull(addBizAppChangeColComReqDto.getTableTypeCode(),"D3更新当前规划资料-D3-13新增业务应用变更字段(公共)-内容表类型编码不能为空",false);
Assert.isNull(addBizAppChangeColComReqDto.getEntityName(),"D3更新当前规划资料-D3-13新增业务应用变更字段(公共)-内容表主键字段英文名不能为空",false);
Assert.isNull(addBizAppChangeColComReqDto.getEntityId(),"D3更新当前规划资料-D3-13新增业务应用变更字段(公共)-内容表主键ID不能为空",false);
Assert.isNull(addBizAppChangeColComReqDto.getObjectPropertyCode(),"D3更新当前规划资料-D3-13新增业务应用变更字段(公共)-变更字段英文名不能为空",false);
Assert.isNull(addBizAppChangeColComReqDto.getObjectPropertyName(),"D3更新当前规划资料-D3-13新增业务应用变更字段(公共)-变更字段行为日志名称不能为空",false);
Assert.isNull(addBizAppChangeColComReqDto.getMetaDataColumnContent(),"D3更新当前规划资料-D3-13新增业务应用变更字段(公共)-变更字段原始值不能为空",false);
Assert.isNull(addBizAppChangeColComReqDto.getColumnContent(),"D3更新当前规划资料-D3-13新增业务应用变更字段(公共)-变更后字段中文内容不能为空",false);
Assert.isNull(addBizAppChangeColComReqDto.getOriColumnContent(),"D3更新当前规划资料-D3-13新增业务应用变更字段(公共)-变更前字段中文内容不能为空",false);
Assert.isNull(addBizAppChangeColComReqDto.getSubjectTypeCode(),"D3更新当前规划资料-D3-13新增业务应用变更字段(公共)-主体类型编码不能为空",false);
Assert.isNull(addBizAppChangeColComReqDto.getSubjectChangeType(),"D3更新当前规划资料-D3-13新增业务应用变更字段(公共)-主体变更日志类型不能为空",false);
Assert.isNull(addBizAppChangeColComReqDto.getObjectTypeCode(),"D3更新当前规划资料-D3-13新增业务应用变更字段(公共)-归属对象类型编码不能为空",false);
Assert.isNull(addBizAppChangeColComReqDto.getObjectId(),"D3更新当前规划资料-D3-13新增业务应用变更字段(公共)-归属对象内容ID不能为空",false);
Assert.isNull(addBizAppChangeColComReqDto.getBatchCode(),"D3更新当前规划资料-D3-13新增业务应用变更字段(公共)-批次标识不能为空",false);
Assert.isNull(addBizAppChangeColComReqDto.getBatchCurrentStatus(),"D3更新当前规划资料-D3-13新增业务应用变更字段(公共)-批次现状不能为空",false);
Assert.isNull(addBizAppChangeColComReqDto.getSubjectContAffiliationParentCont(),"D3更新当前规划资料-D3-13新增业务应用变更字段(公共)-主体内容归属父对象不能为空",false);
      addBizAppChangeColComRespDto = changeColumnService.addBizAppChangeColCom(addBizAppChangeColComReqDto)/*vcase invoke isSameApp*/;



           }

//步骤9: D3-13存档业务应用变更字段(公共) - archiveBizAppChangeColCom
     ArchiveBizAppChangeColComRespDto archiveBizAppChangeColComRespDto = null;
    if(omsPlanning !=null){
          ArchiveBizAppChangeColComReqDto archiveBizAppChangeColComReqDto=new ArchiveBizAppChangeColComReqDto();
  archiveBizAppChangeColComReqDto.setTableTypeCode("OMS_PLANNING");//sourceId:222818_1
archiveBizAppChangeColComReqDto.setEntityName("planningId");//CUSTOM_CONVENTION//sourceId:222819_1
archiveBizAppChangeColComReqDto.setObjectPropertyCode("planningId");//CUSTOM_CONVENTION//sourceId:222821_1
archiveBizAppChangeColComReqDto.setObjectPropertyName("存档规划");//CUSTOM_CONVENTION//sourceId:222822_1
archiveBizAppChangeColComReqDto.setOriColumnContent("数据正常");//CUSTOM_CONVENTION//sourceId:222825_1
archiveBizAppChangeColComReqDto.setSubjectTypeCode("EVALUATION_TEMPLATE_LOG_NAV");//sourceId:222826_1
archiveBizAppChangeColComReqDto.setSubjectChangeType("ARCHIVE_PLAN");//CUSTOM_CONVENTION//sourceId:222827_1
archiveBizAppChangeColComReqDto.setObjectTypeCode("OMS_EVALUATION_TEMPLATE");//sourceId:222828_1
if(omsPlanning!=null){
      archiveBizAppChangeColComReqDto.setEntityId(omsPlanning.getPlanningId());//SimpleFieldAssign//sourceId:222820_1
archiveBizAppChangeColComReqDto.setMetaDataColumnContent(omsPlanning.getPlanningId());//SimpleFieldAssign//sourceId:222823_1
archiveBizAppChangeColComReqDto.setColumnContent(omsPlanning.getPlanningShortName());//SimpleFieldAssign//sourceId:222824_1
archiveBizAppChangeColComReqDto.setObjectId(omsPlanning.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:222829_1
    }
if(judgeUpdatePlanDataUsableComRespDto!=null){
      archiveBizAppChangeColComReqDto.setBatchCode(judgeUpdatePlanDataUsableComRespDto.getBatchCode());//SimpleFieldAssign//sourceId:222830_1
archiveBizAppChangeColComReqDto.setBatchCurrentStatus(judgeUpdatePlanDataUsableComRespDto.getBatchCurrentStatus());//SimpleFieldAssign//sourceId:222831_1
    }
if(omsEvaluationTemplate!=null){
      archiveBizAppChangeColComReqDto.setSubjectContAffiliationParentCont(omsEvaluationTemplate.getEvaluationTempShortName());//SimpleFieldAssign//sourceId:314908_1
    }

    /*D3-13存档业务应用变更字段(公共)[3887]   */
    Assert.isNull(archiveBizAppChangeColComReqDto.getTableTypeCode(),"D3更新当前规划资料-D3-13存档业务应用变更字段(公共)-内容表类型编码不能为空",false);
Assert.isNull(archiveBizAppChangeColComReqDto.getEntityName(),"D3更新当前规划资料-D3-13存档业务应用变更字段(公共)-内容表主键字段英文名不能为空",false);
Assert.isNull(archiveBizAppChangeColComReqDto.getEntityId(),"D3更新当前规划资料-D3-13存档业务应用变更字段(公共)-内容表主键ID不能为空",false);
Assert.isNull(archiveBizAppChangeColComReqDto.getObjectPropertyCode(),"D3更新当前规划资料-D3-13存档业务应用变更字段(公共)-变更字段英文名不能为空",false);
Assert.isNull(archiveBizAppChangeColComReqDto.getObjectPropertyName(),"D3更新当前规划资料-D3-13存档业务应用变更字段(公共)-变更字段行为日志名称不能为空",false);
Assert.isNull(archiveBizAppChangeColComReqDto.getMetaDataColumnContent(),"D3更新当前规划资料-D3-13存档业务应用变更字段(公共)-变更字段原始值不能为空",false);
Assert.isNull(archiveBizAppChangeColComReqDto.getColumnContent(),"D3更新当前规划资料-D3-13存档业务应用变更字段(公共)-变更后字段中文内容不能为空",false);
Assert.isNull(archiveBizAppChangeColComReqDto.getOriColumnContent(),"D3更新当前规划资料-D3-13存档业务应用变更字段(公共)-变更前字段中文内容不能为空",false);
Assert.isNull(archiveBizAppChangeColComReqDto.getSubjectTypeCode(),"D3更新当前规划资料-D3-13存档业务应用变更字段(公共)-主体类型编码不能为空",false);
Assert.isNull(archiveBizAppChangeColComReqDto.getSubjectChangeType(),"D3更新当前规划资料-D3-13存档业务应用变更字段(公共)-主体变更日志类型不能为空",false);
Assert.isNull(archiveBizAppChangeColComReqDto.getObjectTypeCode(),"D3更新当前规划资料-D3-13存档业务应用变更字段(公共)-归属对象类型编码不能为空",false);
Assert.isNull(archiveBizAppChangeColComReqDto.getObjectId(),"D3更新当前规划资料-D3-13存档业务应用变更字段(公共)-归属对象内容ID不能为空",false);
Assert.isNull(archiveBizAppChangeColComReqDto.getBatchCode(),"D3更新当前规划资料-D3-13存档业务应用变更字段(公共)-批次标识不能为空",false);
Assert.isNull(archiveBizAppChangeColComReqDto.getBatchCurrentStatus(),"D3更新当前规划资料-D3-13存档业务应用变更字段(公共)-批次现状不能为空",false);
      archiveBizAppChangeColComRespDto = changeColumnService.archiveBizAppChangeColCom(archiveBizAppChangeColComReqDto)/*vcase invoke isSameApp*/;



           }

RefreshCurrentPlanDataRespDto retData = new RefreshCurrentPlanDataRespDto();
  if(string_1!=null){
      retData.setPlanningId(string_1);//SimpleFieldAssign//sourceId:222946_1
    }




return retData;
  }
/**
   * D3存档当前规划资料[4098]
   * gen by moon at 11/11/2022, 5:29:28 AM
   */
  @Trace(operationName = "D3存档当前规划资料")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ArchiveCurrentPlanDataRespDto archiveCurrentPlanData(ArchiveCurrentPlanDataReqDto reqDto){


      //步骤0: D3判断更新规划资料操作可用(公共) - judgeUpdatePlanDataUsableCom
     JudgeUpdatePlanDataUsableComRespDto judgeUpdatePlanDataUsableComRespDto = null;
    JudgeUpdatePlanDataUsableComReqDto judgeUpdatePlanDataUsableComReqDto=new JudgeUpdatePlanDataUsableComReqDto();
  if(reqDto!=null){
      judgeUpdatePlanDataUsableComReqDto.setPlanningId(reqDto.getPlanningId());//SimpleFieldAssign//sourceId:223157_1
judgeUpdatePlanDataUsableComReqDto.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:223158_1
judgeUpdatePlanDataUsableComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:329870_1
    }

    /*D3判断更新规划资料操作可用(公共)[4096]   */
    Assert.isNull(judgeUpdatePlanDataUsableComReqDto.getPlanningId(),"D3存档当前规划资料-D3判断更新规划资料操作可用(公共)-规划资料ID不能为空",false);
Assert.isNull(judgeUpdatePlanDataUsableComReqDto.getEntityId(),"D3存档当前规划资料-D3判断更新规划资料操作可用(公共)-目标ID不能为空",false);
Assert.isNull(judgeUpdatePlanDataUsableComReqDto.getEvaluationTemplateId(),"D3存档当前规划资料-D3判断更新规划资料操作可用(公共)-冗余评价模板ID不能为空",false);
      judgeUpdatePlanDataUsableComRespDto = judgeUpdatePlanDataUsableCom(judgeUpdatePlanDataUsableComReqDto);
      Assert.isTrue(judgeUpdatePlanDataUsableComRespDto== null||  judgeUpdatePlanDataUsableComRespDto.getOutputNum() ==null,"返回值不能为空",false);



//步骤1: 3-5-01修改规划资料 - updatePlanData
     boolean bOOLEAN ;
    OmsPlanning omsPlanning=new OmsPlanning();
  omsPlanning.setIsUpdate("TRUE");//sourceId:223168_1
omsPlanning.setUpdateStatus("ARCHIVE");//sourceId:223169_1
omsPlanning.setArchivngType("TOBE_ARCHIVING");//sourceId:223170_1
if(reqDto!=null){
      omsPlanning.setPlanningId(reqDto.getPlanningId());//SimpleFieldAssign//sourceId:223163_1
    }

    /*3-5-01存档当前规划资料[2917]   */
    Assert.isNull(omsPlanning.getPlanningId(),"D3存档当前规划资料-3-5-01存档当前规划资料-规划资料ID不能为空",false);
Assert.isNull(omsPlanning.getIsUpdate(),"D3存档当前规划资料-3-5-01存档当前规划资料-批次下是否更新不能为空",false);
Assert.isNull(omsPlanning.getUpdateStatus(),"D3存档当前规划资料-3-5-01存档当前规划资料-批次下更新状态不能为空",false);
Assert.isNull(omsPlanning.getArchivngType(),"D3存档当前规划资料-3-5-01存档当前规划资料-存档类型不能为空",false);
      bOOLEAN = mOmsPlanningService.updatePlanData(omsPlanning);




//步骤2: 3-2-02查评价模板详情 - queryEvaTempDetail
     OmsEvaluationTemplate omsEvaluationTemplate = null;
    QueryEvaTempDetailReq queryEvaTempDetailReq=new QueryEvaTempDetailReq();
  if(reqDto!=null){
      queryEvaTempDetailReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:314909_1
    }

    /*3-2-02查评价模板名称（用于变更字段）[2316]   */
    Assert.isNull(queryEvaTempDetailReq.getEvaluationTemplateId(),"D3存档当前规划资料-3-2-02查评价模板名称（用于变更字段）-评价模板ID不能为空",false);
      omsEvaluationTemplate = mOmsEvaluationTemplateService.queryEvaTempDetail(queryEvaTempDetailReq);
      Assert.isTrue(omsEvaluationTemplate== null||  omsEvaluationTemplate.getEvaluationTempShortName() ==null,"返回值不能为空",false);



//步骤3: D3-13存档业务应用变更字段(公共) - archiveBizAppChangeColCom
     ArchiveBizAppChangeColComRespDto archiveBizAppChangeColComRespDto = null;
    if(judgeUpdatePlanDataUsableComRespDto !=null){
          ArchiveBizAppChangeColComReqDto archiveBizAppChangeColComReqDto=new ArchiveBizAppChangeColComReqDto();
  archiveBizAppChangeColComReqDto.setTableTypeCode("OMS_PLANNING");//sourceId:223171_1
archiveBizAppChangeColComReqDto.setEntityName("planningId");//CUSTOM_CONVENTION//sourceId:223172_1
archiveBizAppChangeColComReqDto.setObjectPropertyCode("planningId");//CUSTOM_CONVENTION//sourceId:223174_1
archiveBizAppChangeColComReqDto.setObjectPropertyName("存档规划");//CUSTOM_CONVENTION//sourceId:223175_1
archiveBizAppChangeColComReqDto.setOriColumnContent("数据正常");//CUSTOM_CONVENTION//sourceId:223178_1
archiveBizAppChangeColComReqDto.setSubjectTypeCode("EVALUATION_TEMPLATE_LOG_NAV");//sourceId:223179_1
archiveBizAppChangeColComReqDto.setSubjectChangeType("ARCHIVE_PLAN");//CUSTOM_CONVENTION//sourceId:223180_1
archiveBizAppChangeColComReqDto.setObjectTypeCode("OMS_EVALUATION_TEMPLATE");//sourceId:223181_1
if(reqDto!=null){
      archiveBizAppChangeColComReqDto.setEntityId(reqDto.getPlanningId());//SimpleFieldAssign//sourceId:223173_1
archiveBizAppChangeColComReqDto.setMetaDataColumnContent(reqDto.getPlanningId());//SimpleFieldAssign//sourceId:223176_1
archiveBizAppChangeColComReqDto.setColumnContent(reqDto.getColumnContent());//SimpleFieldAssign//sourceId:223177_1
archiveBizAppChangeColComReqDto.setObjectId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:223182_1
    }
if(judgeUpdatePlanDataUsableComRespDto!=null){
      archiveBizAppChangeColComReqDto.setBatchCode(judgeUpdatePlanDataUsableComRespDto.getBatchCode());//SimpleFieldAssign//sourceId:223183_1
archiveBizAppChangeColComReqDto.setBatchCurrentStatus(judgeUpdatePlanDataUsableComRespDto.getBatchCurrentStatus());//SimpleFieldAssign//sourceId:223184_1
    }
if(omsEvaluationTemplate!=null){
      archiveBizAppChangeColComReqDto.setSubjectContAffiliationParentCont(omsEvaluationTemplate.getEvaluationTempShortName());//SimpleFieldAssign//sourceId:314937_1
    }

    /*D3-13存档业务应用变更字段(公共)[3887]   */
    Assert.isNull(archiveBizAppChangeColComReqDto.getTableTypeCode(),"D3存档当前规划资料-D3-13存档业务应用变更字段(公共)-内容表类型编码不能为空",false);
Assert.isNull(archiveBizAppChangeColComReqDto.getEntityName(),"D3存档当前规划资料-D3-13存档业务应用变更字段(公共)-内容表主键行为日志英文名称不能为空",false);
Assert.isNull(archiveBizAppChangeColComReqDto.getEntityId(),"D3存档当前规划资料-D3-13存档业务应用变更字段(公共)-内容表主键ID不能为空",false);
Assert.isNull(archiveBizAppChangeColComReqDto.getObjectPropertyCode(),"D3存档当前规划资料-D3-13存档业务应用变更字段(公共)-变更字段英文名不能为空",false);
Assert.isNull(archiveBizAppChangeColComReqDto.getObjectPropertyName(),"D3存档当前规划资料-D3-13存档业务应用变更字段(公共)-变更字段行为日志名称不能为空",false);
Assert.isNull(archiveBizAppChangeColComReqDto.getMetaDataColumnContent(),"D3存档当前规划资料-D3-13存档业务应用变更字段(公共)-变更字段内容不能为空",false);
Assert.isNull(archiveBizAppChangeColComReqDto.getColumnContent(),"D3存档当前规划资料-D3-13存档业务应用变更字段(公共)-变更字段中文内容不能为空",false);
Assert.isNull(archiveBizAppChangeColComReqDto.getOriColumnContent(),"D3存档当前规划资料-D3-13存档业务应用变更字段(公共)-原始字段中文内容不能为空",false);
Assert.isNull(archiveBizAppChangeColComReqDto.getSubjectTypeCode(),"D3存档当前规划资料-D3-13存档业务应用变更字段(公共)-主体类型编码不能为空",false);
Assert.isNull(archiveBizAppChangeColComReqDto.getSubjectChangeType(),"D3存档当前规划资料-D3-13存档业务应用变更字段(公共)-主体变更日志类型不能为空",false);
Assert.isNull(archiveBizAppChangeColComReqDto.getObjectTypeCode(),"D3存档当前规划资料-D3-13存档业务应用变更字段(公共)-归属对象类型编码不能为空",false);
Assert.isNull(archiveBizAppChangeColComReqDto.getObjectId(),"D3存档当前规划资料-D3-13存档业务应用变更字段(公共)-归属对象内容ID不能为空",false);
Assert.isNull(archiveBizAppChangeColComReqDto.getBatchCode(),"D3存档当前规划资料-D3-13存档业务应用变更字段(公共)-批次标识不能为空",false);
Assert.isNull(archiveBizAppChangeColComReqDto.getBatchCurrentStatus(),"D3存档当前规划资料-D3-13存档业务应用变更字段(公共)-批次现状不能为空",false);
      archiveBizAppChangeColComRespDto = changeColumnService.archiveBizAppChangeColCom(archiveBizAppChangeColComReqDto);



           }

ArchiveCurrentPlanDataRespDto retData = new ArchiveCurrentPlanDataRespDto();





return retData;
  }
/**
   * D3-5修改规划资料[2916]
   * gen by moon at 7/18/2024, 6:34:08 PM
   */
  @Trace(operationName = "D3-5修改规划资料")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public UpdatePlanDataRespDto updatePlanData(UpdatePlanDataReqDto reqDto){


      //virtualUsage 3-5-01查规划资料详情  48355
      OmsPlanning omsPlanning = null;
    QueryPlanDataDetailReq queryPlanDataDetailReq=new QueryPlanDataDetailReq();
  queryPlanDataDetailReq.setIsArchive("FALSE");//sourceId:748280_1_48355
  if(reqDto!=null){
      queryPlanDataDetailReq.setPlanningId(reqDto.getPlanningId());//SimpleFieldAssign//sourceId:748274_1_48355
    }

    /*3-5-01查规划资料详情[2515]   */
    Assert.isNull(queryPlanDataDetailReq.getPlanningId(),"D3-5修改规划资料-3-5-01查规划资料详情-规划资料ID不能为空",false);
Assert.isNull(queryPlanDataDetailReq.getIsArchive(),"D3-5修改规划资料-3-5-01查规划资料详情-是否存档不能为空",false);
      omsPlanning = mOmsPlanningService.queryPlanDataDetail(queryPlanDataDetailReq)/*vcase invoke 本地 method 方法调用;*/;



//virtualUsage 3-5-01修改规划资料  48342
     boolean bOOLEAN ;
    OmsPlanning omsPlanning_2=new OmsPlanning();
  if(reqDto!=null){
      omsPlanning_2.setPlanningId(reqDto.getPlanningId());//SimpleFieldAssign//sourceId:93424_1_48342
omsPlanning_2.setPlanningNumber(reqDto.getPlanningNumber());//SimpleFieldAssign//sourceId:93425_1_48342
omsPlanning_2.setPlanningName(reqDto.getPlanningName());//SimpleFieldAssign//sourceId:93426_1_48342
omsPlanning_2.setPlanningShortName(reqDto.getPlanningShortName());//SimpleFieldAssign//sourceId:93427_1_48342
    }

    /*3-5-01修改规划资料[2917]   */
    Assert.isNull(omsPlanning_2.getPlanningId(),"D3-5修改规划资料-3-5-01修改规划资料-规划资料ID不能为空",false);
      bOOLEAN = mOmsPlanningService.updatePlanData(omsPlanning_2)/*vcase invoke 本地 method 方法调用;*/;



if((reqDto!= null&& reqDto.getPlanningName() != null ||reqDto!= null&& reqDto.getPlanningShortName() != null )) {
        //if((D3-5修改规划资料.规划名称 值不等于空  or D3-5修改规划资料.规划简称 值不等于空 ))  48343

     boolean bOOLEAN_1 ;
    if(omsPlanning !=null){
          OmsEvaluationTemplate omsEvaluationTemplate=new OmsEvaluationTemplate();
  if(omsPlanning!=null){
      omsEvaluationTemplate.setEvaluationTemplateId(omsPlanning.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1114893_1_48356
    }
if(reqDto!=null){
      omsEvaluationTemplate.setEvaluationTempName(reqDto.getPlanningName());//SimpleFieldAssign//sourceId:1114896_1_48356
omsEvaluationTemplate.setEvaluationTempShortName(reqDto.getPlanningShortName());//SimpleFieldAssign//sourceId:1114897_1_48356
    }

    /*3-2-02修改评价模板名称或简称[2393]   */
    Assert.isNull(omsEvaluationTemplate.getEvaluationTemplateId(),"D3-5修改规划资料-3-2-02修改评价模板名称或简称-评价模板ID不能为空",false);
      bOOLEAN_1 = mOmsEvaluationTemplateService.updateEvaTemp(omsEvaluationTemplate)/*vcase invoke 本地 method 方法调用;*/;



           }
List<OmsEvaluationObjectTargetCycle> listOmsEvaluationObjectTargetCycle =new ArrayList<>();
    if(omsPlanning !=null){
          QueryEvaObjTargetCycleListReq queryEvaObjTargetCycleListReq=new QueryEvaObjTargetCycleListReq();
  queryEvaObjTargetCycleListReq.setTargetCycleContentTypeCode("TARGET");//sourceId:1114868_1_48344
queryEvaObjTargetCycleListReq.setIsArchive("FALSE");//sourceId:1114870_1_48344
if(omsPlanning!=null){
      queryEvaObjTargetCycleListReq.setEvaluationTemplateId(omsPlanning.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1114898_1_48344
    }

    /*3-3-09查全模板目标周期列表（目标）[2190]   */
    Assert.isNull(queryEvaObjTargetCycleListReq.getEvaluationTemplateId(),"D3-5修改规划资料-3-3-09查全模板目标周期列表（目标）-冗余评价模板ID不能为空",false);
Assert.isNull(queryEvaObjTargetCycleListReq.getTargetCycleContentTypeCode(),"D3-5修改规划资料-3-3-09查全模板目标周期列表（目标）-关联目标内容类型编码不能为空",false);
Assert.isNull(queryEvaObjTargetCycleListReq.getIsArchive(),"D3-5修改规划资料-3-3-09查全模板目标周期列表（目标）-是否存档不能为空",false);
      listOmsEvaluationObjectTargetCycle = mOmsEvaluationObjectTargetCycleService.queryEvaObjTargetCycleList(queryEvaObjTargetCycleListReq)/*vcase invoke 本地 method 方法调用;*/;



           }
if((listOmsEvaluationObjectTargetCycle!= null&&  listOmsEvaluationObjectTargetCycle !=null && listOmsEvaluationObjectTargetCycle.size()>0)) {
        //if(3-3-09查全模板目标周期列表（目标）.被评对象目标周期列表数据集条数 大于 0)  48345

boolean bOOLEAN_2 ;
    if(listOmsEvaluationObjectTargetCycle !=null&& !CollectionUtil.isEmpty(listOmsEvaluationObjectTargetCycle)&& listOmsEvaluationObjectTargetCycle.size()>0 ){
          List<OmsEvaluationObjectTargetCycle> listOmsEvaluationObjectTargetCycle_2=new ArrayList<>();
  if(listOmsEvaluationObjectTargetCycle!= null&& !CollectionUtil.isEmpty(listOmsEvaluationObjectTargetCycle)&&  listOmsEvaluationObjectTargetCycle !=null&& !CollectionUtil.isEmpty(listOmsEvaluationObjectTargetCycle)){
      listOmsEvaluationObjectTargetCycle_2 = //objList-to-objLists
        listOmsEvaluationObjectTargetCycle.stream().map(item -> {
      OmsEvaluationObjectTargetCycle elm = new OmsEvaluationObjectTargetCycle();
      elm.setEvaObjTargetCycleId(item.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:232728_2_48347
elm.setOperationInductionId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecInductionRecordId());//CURRENT_INDUCTIONID//sourceId:232731_2_48347
elm.setOperateTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME//sourceId:232732_2_48347
if(reqDto!=null){
      elm.setTargetCycleName(reqDto.getPlanningName());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:232729_2_48347
elm.setCyclelAlias(reqDto.getPlanningShortName());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:232730_2_48347
    }
        return elm;
      }).collect(Collectors.toList());//objList-to-objLists//sourceId:1114875_1_48347
    }

    /*3-3-09-01批量改目标周期简称或名称[2664]   */

      bOOLEAN_2 = mOmsEvaluationObjectTargetCycleService.batchUpdateEvaObjTargetCycle(listOmsEvaluationObjectTargetCycle_2)/*vcase invoke 本地 method 方法调用;*/;



           }
      }
      }
if((reqDto!= null&& reqDto.getHypertextContent() != null )) {
        //if(D3-5修改规划资料.超文本内容 值不等于空 )  48352

OmsBizAppHypertextContent omsBizAppHypertextContent = null;
    QueryBusAppHypertextContentDetailReq queryBusAppHypertextContentDetailReq=new QueryBusAppHypertextContentDetailReq();
  queryBusAppHypertextContentDetailReq.setReleationContTypeCode("PLANNING_DATA");//sourceId:1114876_1_48353
queryBusAppHypertextContentDetailReq.setHypertextType("PLANNING_DATA");//sourceId:1114881_1_48353
if(reqDto!=null){
      queryBusAppHypertextContentDetailReq.setReleationContId(reqDto.getPlanningId());//SimpleFieldAssign//sourceId:1114877_1_48353
    }

    /*3-5-02查规划资料超文本内容ID（用于修改超本资料内容）[3140]   */
    Assert.isNull(queryBusAppHypertextContentDetailReq.getReleationContId(),"D3-5修改规划资料-3-5-02查规划资料超文本内容ID（用于修改超本资料内容）-超文本内容关联主键ID不能为空",false);
Assert.isNull(queryBusAppHypertextContentDetailReq.getReleationContTypeCode(),"D3-5修改规划资料-3-5-02查规划资料超文本内容ID（用于修改超本资料内容）-超文本内容关联类型编码不能为空",false);
Assert.isNull(queryBusAppHypertextContentDetailReq.getHypertextType(),"D3-5修改规划资料-3-5-02查规划资料超文本内容ID（用于修改超本资料内容）-超文本内容类型不能为空",false);
      omsBizAppHypertextContent = mOmsBizAppHypertextContentService.queryBusAppHypertextContentDetail(queryBusAppHypertextContentDetailReq)/*vcase invoke 本地 method 方法调用;*/;



boolean bOOLEAN_3 ;
    if(omsBizAppHypertextContent !=null){
          OmsBizAppHypertextContent omsBizAppHypertextContent_2=new OmsBizAppHypertextContent();
  omsBizAppHypertextContent_2.setOperationInductionId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecInductionRecordId());//CURRENT_INDUCTIONID//sourceId:162618_1_48354
omsBizAppHypertextContent_2.setOperateTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME//sourceId:162619_1_48354
if(omsBizAppHypertextContent!=null){
      omsBizAppHypertextContent_2.setHypertextContentId(omsBizAppHypertextContent.getHypertextContentId());//SimpleFieldAssign//sourceId:162614_1_48354
    }
if(reqDto!=null){
      omsBizAppHypertextContent_2.setHypertextContent(reqDto.getHypertextContent());//SimpleFieldAssign//sourceId:162617_1_48354
    }

    /*3-3-05修改超文本内容[3626]   */
    Assert.isNull(omsBizAppHypertextContent_2.getHypertextContentId(),"D3-5修改规划资料-3-3-05修改超文本内容-超文本内容ID不能为空",false);
Assert.isNull(omsBizAppHypertextContent_2.getOperationInductionId(),"D3-5修改规划资料-3-3-05修改超文本内容-操作人就职记录ID不能为空",false);
Assert.isNull(omsBizAppHypertextContent_2.getOperateTime(),"D3-5修改规划资料-3-3-05修改超文本内容-操作时间不能为空",false);
      bOOLEAN_3 = mOmsBizAppHypertextContentService.updateHypertextContent(omsBizAppHypertextContent_2)/*vcase invoke 本地 method 方法调用;*/;



           }
      }
//virtualUsage D3执行准备规划相关资料文档关系(公共)  69828
      ImplementPerpareDataDocRelOrDocComRespDto implementPerpareDataDocRelOrDocComRespDto = null;
    if(omsPlanning !=null){
          ImplementPerpareDataDocRelOrDocComReqDto implementPerpareDataDocRelOrDocComReqDto=new ImplementPerpareDataDocRelOrDocComReqDto();
if(omsPlanning!=null){
      implementPerpareDataDocRelOrDocComReqDto.setEvaObjTargetCycleId(omsPlanning.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1859328_1_69828
implementPerpareDataDocRelOrDocComReqDto.setEvaluationTemplateId(omsPlanning.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1859329_1_69828
    }

    /*D3执行准备规划相关资料文档关系(公共)[9775]   */
    Assert.isNull(implementPerpareDataDocRelOrDocComReqDto.getEvaObjTargetCycleId(),"D3-5修改规划资料-D3执行准备规划相关资料文档关系(公共)-被评对象目标周期ID不能为空",false);
Assert.isNull(implementPerpareDataDocRelOrDocComReqDto.getEvaluationTemplateId(),"D3-5修改规划资料-D3执行准备规划相关资料文档关系(公共)-冗余评价模板ID不能为空",false);
      implementPerpareDataDocRelOrDocComRespDto = unstructuredDataService.implementPerpareDataDocRelOrDocCom(implementPerpareDataDocRelOrDocComReqDto)/*vcase invoke isSameApp*/;



           }
//virtualUsage D2执行分离新增或删除文档列表(公共)  69752
      ImplementSeparateAddOrDeleteDocListComRespDto implementSeparateAddOrDeleteDocListComRespDto = null;
    if(implementPerpareDataDocRelOrDocComRespDto !=null&&omsPlanning !=null){
          ImplementSeparateAddOrDeleteDocListComReqDto implementSeparateAddOrDeleteDocListComReqDto=new ImplementSeparateAddOrDeleteDocListComReqDto();
  implementSeparateAddOrDeleteDocListComReqDto.setIsCleanPersonalInvalidDocument("TRUE");//sourceId:1934772_1_69752
  implementSeparateAddOrDeleteDocListComReqDto.setDocUseSceneCode("PLANNING");//sourceId:1854827_1_69752
implementSeparateAddOrDeleteDocListComReqDto.setDocUseType("PLAN_DATA");//sourceId:1854828_1_69752
implementSeparateAddOrDeleteDocListComReqDto.setIsResult("FALSE");//sourceId:1859362_1_69752
implementSeparateAddOrDeleteDocListComReqDto.setOwnTableTypeCode("OMS_PLANNING");//sourceId:1854830_1_69752
implementSeparateAddOrDeleteDocListComReqDto.setOwnParentContentTypeCode("OMS_EVALUATION_OBJECT_TARGET_CYCLE");//sourceId:1854831_1_69752
implementSeparateAddOrDeleteDocListComReqDto.setThemeContentTypeCode("OMS_EVALUATION_TEMPLATE");//sourceId:1854834_1_69752
implementSeparateAddOrDeleteDocListComReqDto.setUserId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecUserId());//CURRENT_USERID//sourceId:1854837_1_69752
implementSeparateAddOrDeleteDocListComReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1854825_1_69752
if(reqDto!= null&&  reqDto.getBusAppDocRelaList() !=null&& !CollectionUtil.isEmpty(reqDto.getBusAppDocRelaList())){
      implementSeparateAddOrDeleteDocListComReqDto.setDocumentList(reqDto.getBusAppDocRelaList().stream().map(item -> BeanUtil.toBean(item, com.wicket.okrcomponent.integration.dto.DocumentDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1854826_1_69752
    }
if(reqDto!=null){
      implementSeparateAddOrDeleteDocListComReqDto.setOwnEntityId(reqDto.getPlanningId());//SimpleFieldAssign//sourceId:1854824_1_69752
    }
if(implementPerpareDataDocRelOrDocComRespDto!=null){
      implementSeparateAddOrDeleteDocListComReqDto.setOwnWorkCycleId(implementPerpareDataDocRelOrDocComRespDto.getCycleId());//SimpleFieldAssign//sourceId:1854829_1_69752
implementSeparateAddOrDeleteDocListComReqDto.setOwnParentContentCode(implementPerpareDataDocRelOrDocComRespDto.getEvaObjTargetCycleCode());//SimpleFieldAssign//sourceId:1854832_1_69752
    }
if(omsPlanning!=null){
      implementSeparateAddOrDeleteDocListComReqDto.setOwnParentContentId(omsPlanning.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1854833_1_69752
      implementSeparateAddOrDeleteDocListComReqDto.setThemeContentId(omsPlanning.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1854835_1_69752
    }

    /*D2执行分离新增或删除文档列表(公共)[8783]   */
    Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getIsCleanPersonalInvalidDocument(),"D3-5修改规划资料-D2执行分离新增或删除文档列表(公共)-是否清理个人无效文档不能为空",false);
    Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getDocUseSceneCode(),"D3-5修改规划资料-D2执行分离新增或删除文档列表(公共)-文档应用业务场景不能为空",false);
Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getDocUseType(),"D3-5修改规划资料-D2执行分离新增或删除文档列表(公共)-文档用途类型不能为空",false);
Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getIsResult(),"D3-5修改规划资料-D2执行分离新增或删除文档列表(公共)-冗余是否结果文档不能为空",false);
Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getOwnEntityId(),"D3-5修改规划资料-D2执行分离新增或删除文档列表(公共)-归属内容表主键ID不能为空",false);
Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getOwnTableTypeCode(),"D3-5修改规划资料-D2执行分离新增或删除文档列表(公共)-归属内容表类型编码不能为空",false);
Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getOwnWorkCycleId(),"D3-5修改规划资料-D2执行分离新增或删除文档列表(公共)-归属工作周期ID不能为空",false);
Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getOwnParentContentTypeCode(),"D3-5修改规划资料-D2执行分离新增或删除文档列表(公共)-归属父内容表类型编码不能为空",false);
Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getOwnParentContentCode(),"D3-5修改规划资料-D2执行分离新增或删除文档列表(公共)-归属父内容标识不能为空",false);
Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getOwnParentContentId(),"D3-5修改规划资料-D2执行分离新增或删除文档列表(公共)-归属父内容表主键ID不能为空",false);
Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getThemeContentTypeCode(),"D3-5修改规划资料-D2执行分离新增或删除文档列表(公共)-主题内容表类型编码不能为空",false);
Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getThemeContentId(),"D3-5修改规划资料-D2执行分离新增或删除文档列表(公共)-主题内容ID不能为空",false);
Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getUserId(),"D3-5修改规划资料-D2执行分离新增或删除文档列表(公共)-归属个人账号不能为空",false);
Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getSpaceId(),"D3-5修改规划资料-D2执行分离新增或删除文档列表(公共)-创建于空间ID不能为空",false);
      implementSeparateAddOrDeleteDocListComRespDto = fwCompUnstructuredDataClient.implementSeparateAddOrDeleteDocListCom(implementSeparateAddOrDeleteDocListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }

UpdatePlanDataRespDto retData = new UpdatePlanDataRespDto();





return retData;
  }
/**
   * D3-新增规划资料文档关系(公共)[6145]
   * gen by moon at 11/9/2023, 10:27:52 PM
   */
  @Trace(operationName = "D3-新增规划资料文档关系(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public AddBusAppDocRelaComRespDto addBusAppDocRelaCom(AddBusAppDocRelaComReqDto reqDto){


      if((reqDto!= null&&  reqDto.getBusAppDocRelaList() !=null && reqDto.getBusAppDocRelaList().size()>0)) {
        //if(D3-新增规划资料文档关系(公共).业务应用文档关系列表数据集条数 大于 0)  34581

BatchQueryDocumentComRespDto batchQueryDocumentComRespDto = null;
    BatchQueryDocumentComReqDto batchQueryDocumentComReqDto=new BatchQueryDocumentComReqDto();
  if(reqDto!= null&&  reqDto.getBusAppDocRelaList() !=null&& !CollectionUtil.isEmpty(reqDto.getBusAppDocRelaList())){
      batchQueryDocumentComReqDto.setDocumentList(reqDto.getBusAppDocRelaList().stream().map(item->item.getUnstructuredDataId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:778299_1_34582
    }

    /*D2-批量查询文档列表(公共)[2670]   */

      batchQueryDocumentComRespDto = fwCompUnstructuredDataClient.batchQueryDocumentCom(batchQueryDocumentComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



ImplementDataSetMergeDocRelationFieldsComRespDto implementDataSetMergeDocRelationFieldsComRespDto = null;
    if(batchQueryDocumentComRespDto !=null){
          ImplementDataSetMergeDocRelationFieldsComReqDto implementDataSetMergeDocRelationFieldsComReqDto=new ImplementDataSetMergeDocRelationFieldsComReqDto();
  if(batchQueryDocumentComRespDto!= null&&  batchQueryDocumentComRespDto.getDocumentList() !=null&& !CollectionUtil.isEmpty(batchQueryDocumentComRespDto.getDocumentList())){
      implementDataSetMergeDocRelationFieldsComReqDto.setDocumentList(batchQueryDocumentComRespDto.getDocumentList().stream().map(item -> BeanUtil.toBean(item, com.wicket.okrcomponent.integration.dto.DocumentDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:778295_1_34583
    }
if(reqDto!= null&&  reqDto.getBusAppDocRelaList() !=null&& !CollectionUtil.isEmpty(reqDto.getBusAppDocRelaList())){
      implementDataSetMergeDocRelationFieldsComReqDto.setDataSetsListOne(reqDto.getBusAppDocRelaList().stream().map(item -> BeanUtil.toBean(item, com.wicket.okrcomponent.integration.dto.DataSetsListOneDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:778296_1_34583
    }

    /*D2执行数据集合并文档关系字段(公共)[6065]   */

      implementDataSetMergeDocRelationFieldsComRespDto = fwCompInterfaceModeClient.implementDataSetMergeDocRelationFieldsCom(implementDataSetMergeDocRelationFieldsComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }
BatchAddDocAndDocRelaComRespDto batchAddDocAndDocRelaComRespDto = null;
    if(implementDataSetMergeDocRelationFieldsComRespDto !=null){
          BatchAddDocAndDocRelaComReqDto batchAddDocAndDocRelaComReqDto=new BatchAddDocAndDocRelaComReqDto();
  batchAddDocAndDocRelaComReqDto.setBizAppFileTypeCode("PLANNING");//sourceId:778272_1_34585
batchAddDocAndDocRelaComReqDto.setBaseFileRelationshipType("DIRECT_RELATION");//sourceId:778273_1_34585
batchAddDocAndDocRelaComReqDto.setThemeContentTypeCode("OMS_EVALUATION_TEMPLATE");//sourceId:1280437_1_34585
if(reqDto!=null){
      batchAddDocAndDocRelaComReqDto.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:778271_1_34585
batchAddDocAndDocRelaComReqDto.setDocUseType(reqDto.getDocUseType());//SimpleFieldAssign//sourceId:786485_1_34585
batchAddDocAndDocRelaComReqDto.setOneStageId(reqDto.getOneStageId());//SimpleFieldAssign//sourceId:778274_1_34585
batchAddDocAndDocRelaComReqDto.setTwoStageId(reqDto.getTwoStageId());//SimpleFieldAssign//sourceId:778275_1_34585
batchAddDocAndDocRelaComReqDto.setLastStageId(reqDto.getLastStageId());//SimpleFieldAssign//sourceId:778276_1_34585
batchAddDocAndDocRelaComReqDto.setIsResult(reqDto.getIsResult());//SimpleFieldAssign//sourceId:778277_1_34585
batchAddDocAndDocRelaComReqDto.setThemeContentId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1280438_1_34585
    }
if(implementDataSetMergeDocRelationFieldsComRespDto!= null&&  implementDataSetMergeDocRelationFieldsComRespDto.getDocumentList() !=null&& !CollectionUtil.isEmpty(implementDataSetMergeDocRelationFieldsComRespDto.getDocumentList())){
      batchAddDocAndDocRelaComReqDto.setBusAppDocRelaList(implementDataSetMergeDocRelationFieldsComRespDto.getDocumentList().stream().map(item -> BeanUtil.toBean(item, BusAppDocRelaDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:778278_1_34585
    }

    /*D3批量增文档及文档关系(公共)[6060]   */
    Assert.isNull(batchAddDocAndDocRelaComReqDto.getBizAppFileTypeCode(),"D3-新增规划资料文档关系(公共)-D3批量增文档及文档关系(公共)-业务应用文档归属类型编码不能为空",false);
Assert.isNull(batchAddDocAndDocRelaComReqDto.getBaseFileRelationshipType(),"D3-新增规划资料文档关系(公共)-D3批量增文档及文档关系(公共)-文档内容关系类型编码不能为空",false);
Assert.isNull(batchAddDocAndDocRelaComReqDto.getEntityId(),"D3-新增规划资料文档关系(公共)-D3批量增文档及文档关系(公共)-归属内容实例ID不能为空",false);
Assert.isNull(batchAddDocAndDocRelaComReqDto.getThemeContentTypeCode(),"D3-新增规划资料文档关系(公共)-D3批量增文档及文档关系(公共)-主题内容类型编码不能为空",false);
Assert.isNull(batchAddDocAndDocRelaComReqDto.getThemeContentId(),"D3-新增规划资料文档关系(公共)-D3批量增文档及文档关系(公共)-主题内容ID不能为空",false);
      batchAddDocAndDocRelaComRespDto = unstructuredDataService.batchAddDocAndDocRelaCom(batchAddDocAndDocRelaComReqDto)/*vcase invoke isSameApp*/;



           }
      }
AddBusAppDocRelaComRespDto retData = new AddBusAppDocRelaComRespDto();





return retData;
  }
/**
   * 11111D3批量增业务应用文档关系(公共)[6145]
   * gen by moon at 6/7/2024, 6:56:50 PM
   */
  @Trace(operationName = "11111D3批量增业务应用文档关系(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public BatchAddBusAppDocRelaComRespDto batchAddBusAppDocRelaCom(BatchAddBusAppDocRelaComReqDto reqDto){


      BatchQueryDocumentComRespDto batchQueryDocumentComRespDto_1 =null;
if((reqDto!= null&&  reqDto.getBusAppDocRelaList() !=null && reqDto.getBusAppDocRelaList().size()>0)) {
        //if(D3-新增规划资料文档关系(公共).业务应用文档关系列表数据集条数 大于 0)  34581

BatchQueryDocumentComRespDto batchQueryDocumentComRespDto = null;
    BatchQueryDocumentComReqDto batchQueryDocumentComReqDto=new BatchQueryDocumentComReqDto();
  batchQueryDocumentComReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1798192_1_34582
  if(reqDto!= null&&  reqDto.getBusAppDocRelaList() !=null&& !CollectionUtil.isEmpty(reqDto.getBusAppDocRelaList())){
      batchQueryDocumentComReqDto.setDocumentList(reqDto.getBusAppDocRelaList().stream().map(item->item.getUnstructuredDataId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:778299_1_34582
    }

    /*D2-批量查询文档列表(公共)[2670]   */
    Assert.isNull(batchQueryDocumentComReqDto.getSpaceId(),"11111D3批量增业务应用文档关系(公共)-D2-批量查询文档列表(公共)-创建于空间ID不能为空",false);
      batchQueryDocumentComRespDto = fwCompUnstructuredDataClient.batchQueryDocumentCom(batchQueryDocumentComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      batchQueryDocumentComRespDto_1 = batchQueryDocumentComRespDto;
ImplementDataSetMergeDocRelationFieldsComRespDto implementDataSetMergeDocRelationFieldsComRespDto = null;
    if(batchQueryDocumentComRespDto !=null){
          ImplementDataSetMergeDocRelationFieldsComReqDto implementDataSetMergeDocRelationFieldsComReqDto=new ImplementDataSetMergeDocRelationFieldsComReqDto();
  if(batchQueryDocumentComRespDto!= null&&  batchQueryDocumentComRespDto.getDocumentList() !=null&& !CollectionUtil.isEmpty(batchQueryDocumentComRespDto.getDocumentList())){
      implementDataSetMergeDocRelationFieldsComReqDto.setDocumentList(batchQueryDocumentComRespDto.getDocumentList().stream().map(item -> BeanUtil.toBean(item, com.wicket.okrcomponent.integration.dto.DocumentDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:778295_1_34583
    }
if(reqDto!= null&&  reqDto.getBusAppDocRelaList() !=null&& !CollectionUtil.isEmpty(reqDto.getBusAppDocRelaList())){
      implementDataSetMergeDocRelationFieldsComReqDto.setDataSetsListOne(reqDto.getBusAppDocRelaList().stream().map(item -> BeanUtil.toBean(item, DataSetsListOneDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:778296_1_34583
    }

    /*D2执行数据集合并文档关系字段(公共)[6065]   */

      implementDataSetMergeDocRelationFieldsComRespDto = fwCompInterfaceModeClient.implementDataSetMergeDocRelationFieldsCom(implementDataSetMergeDocRelationFieldsComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }
BatchAddDocAndDocRelaComRespDto batchAddDocAndDocRelaComRespDto = null;
    if(implementDataSetMergeDocRelationFieldsComRespDto !=null){
          BatchAddDocAndDocRelaComReqDto batchAddDocAndDocRelaComReqDto=new BatchAddDocAndDocRelaComReqDto();
  if(reqDto!=null){
      batchAddDocAndDocRelaComReqDto.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:778271_1_34585
batchAddDocAndDocRelaComReqDto.setBizAppFileTypeCode(reqDto.getBizAppFileTypeCode());//SimpleFieldAssign//sourceId:778272_1_34585
batchAddDocAndDocRelaComReqDto.setBaseFileRelationshipType(reqDto.getBaseFileRelationshipType());//SimpleFieldAssign//sourceId:778273_1_34585
batchAddDocAndDocRelaComReqDto.setDocUseType(reqDto.getDocUseType());//SimpleFieldAssign//sourceId:786485_1_34585
batchAddDocAndDocRelaComReqDto.setOneStageId(reqDto.getOneStageId());//SimpleFieldAssign//sourceId:778274_1_34585
batchAddDocAndDocRelaComReqDto.setTwoStageId(reqDto.getTwoStageId());//SimpleFieldAssign//sourceId:778275_1_34585
batchAddDocAndDocRelaComReqDto.setLastStageId(reqDto.getLastStageId());//SimpleFieldAssign//sourceId:778276_1_34585
batchAddDocAndDocRelaComReqDto.setIsResult(reqDto.getIsResult());//SimpleFieldAssign//sourceId:778277_1_34585
batchAddDocAndDocRelaComReqDto.setThemeContentTypeCode(reqDto.getThemeContentTypeCode());//SimpleFieldAssign//sourceId:1280437_1_34585
batchAddDocAndDocRelaComReqDto.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1280438_1_34585
    }
if(implementDataSetMergeDocRelationFieldsComRespDto!= null&&  implementDataSetMergeDocRelationFieldsComRespDto.getDocumentList() !=null&& !CollectionUtil.isEmpty(implementDataSetMergeDocRelationFieldsComRespDto.getDocumentList())){
      batchAddDocAndDocRelaComReqDto.setBusAppDocRelaList(implementDataSetMergeDocRelationFieldsComRespDto.getDocumentList().stream().map(item -> BeanUtil.toBean(item, BusAppDocRelaDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:778278_1_34585
    }

    /*11111D3批量增文档及文档关系(公共)[6060]   */
    Assert.isNull(batchAddDocAndDocRelaComReqDto.getEntityId(),"11111D3批量增业务应用文档关系(公共)-11111D3批量增文档及文档关系(公共)-归属内容实例ID不能为空",false);
Assert.isNull(batchAddDocAndDocRelaComReqDto.getBizAppFileTypeCode(),"11111D3批量增业务应用文档关系(公共)-11111D3批量增文档及文档关系(公共)-业务应用文档归属类型编码不能为空",false);
Assert.isNull(batchAddDocAndDocRelaComReqDto.getBaseFileRelationshipType(),"11111D3批量增业务应用文档关系(公共)-11111D3批量增文档及文档关系(公共)-文档内容关系类型编码不能为空",false);
Assert.isNull(batchAddDocAndDocRelaComReqDto.getDocUseType(),"11111D3批量增业务应用文档关系(公共)-11111D3批量增文档及文档关系(公共)-文档用途类型不能为空",false);
      batchAddDocAndDocRelaComRespDto = unstructuredDataService.batchAddDocAndDocRelaCom(batchAddDocAndDocRelaComReqDto)/*vcase invoke isSameApp*/;



           }
      }
BatchAddBusAppDocRelaComRespDto retData = new BatchAddBusAppDocRelaComRespDto();
  if(batchQueryDocumentComRespDto_1!=null){
      retData.setDocumentList(batchQueryDocumentComRespDto_1.getDocumentList().stream().map(item -> BeanUtil.toBean(item, DocumentDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1313458_1
    }




return retData;
  }
/**
   * D3查询规划资料详情by主键(公共)[9776]
   * gen by moon at 6/9/2024, 4:36:29 PM
   */
  @Trace(operationName = "D3查询规划资料详情by主键(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public QueryPlanDataByPrimaryKeyDetailComRespDto queryPlanDataByPrimaryKeyDetailCom(QueryPlanDataByPrimaryKeyDetailComReqDto reqDto){


      OmsPlanning omsPlanning_1 =null;
//步骤0: 3-5-01查规划资料详情 - queryPlanDataDetail
     OmsPlanning omsPlanning = null;
    QueryPlanDataDetailReq queryPlanDataDetailReq=new QueryPlanDataDetailReq();
  if(reqDto!=null){
      queryPlanDataDetailReq.setPlanningId(reqDto.getPlanningId());//SimpleFieldAssign//sourceId:1859642_1
queryPlanDataDetailReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1859657_1
queryPlanDataDetailReq.setIsMainplan(reqDto.getIsMainplan());//SimpleFieldAssign//sourceId:1859658_1
queryPlanDataDetailReq.setIsArchive(reqDto.getIsArchive());//SimpleFieldAssign//sourceId:1859648_1
queryPlanDataDetailReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1859649_1
    }

    /*3-5-01查规划资料详情[2515]   */
    Assert.isNull(queryPlanDataDetailReq.getPlanningId(),"D3查询规划资料详情by主键(公共)-3-5-01查规划资料详情-规划资料ID不能为空",false);
      omsPlanning = mOmsPlanningService.queryPlanDataDetail(queryPlanDataDetailReq)/*vcase invoke 本地 method 方法调用;*/;


      omsPlanning_1 = omsPlanning;

QueryPlanDataByPrimaryKeyDetailComRespDto retData = new QueryPlanDataByPrimaryKeyDetailComRespDto();
  if(omsPlanning_1!=null){
      retData.setPlanningId(omsPlanning_1.getPlanningId());//SimpleFieldAssign//sourceId:1859666_1
retData.setPlanningNumber(omsPlanning_1.getPlanningNumber());//SimpleFieldAssign//sourceId:1859667_1
retData.setPlanningName(omsPlanning_1.getPlanningName());//SimpleFieldAssign//sourceId:1859668_1
retData.setPlanningShortName(omsPlanning_1.getPlanningShortName());//SimpleFieldAssign//sourceId:1859669_1
retData.setPlanSchemeClass(omsPlanning_1.getPlanSchemeClass());//SimpleFieldAssign//sourceId:1859670_1
retData.setIsMainplan(omsPlanning_1.getIsMainplan());//SimpleFieldAssign//sourceId:1859671_1
retData.setTargetCategoryId(omsPlanning_1.getTargetCategoryId());//SimpleFieldAssign//sourceId:1859672_1
retData.setEvaObjTargetCycleId(omsPlanning_1.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1859673_1
retData.setEvaluationTemplateId(omsPlanning_1.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1859674_1
retData.setDeptId(omsPlanning_1.getDeptId());//SimpleFieldAssign//sourceId:1859675_1
retData.setPlanningType(omsPlanning_1.getPlanningType());//SimpleFieldAssign//sourceId:1859676_1
retData.setOkrType(omsPlanning_1.getOkrType());//SimpleFieldAssign//sourceId:1859677_1
retData.setUpdateStatus(omsPlanning_1.getUpdateStatus());//SimpleFieldAssign//sourceId:1859678_1
retData.setSubjectLifeCycle(omsPlanning_1.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1859679_1
    }




return retData;
  }
    //
}
